Well, I've read the manual about scm_*_locale_string.
It shows:
---
Note that these functions should not be used to convert C string constants,
because
there is no guarantee that the current locale will match that of the source
code. To
convert C string constants, us
Sorry, it's my fault.
setlocale(LC_ALL,"") is not query.
setlocale(LC_ALL,NULL) does.
So it's a wrong patch. Thanks Petter.
On Tue, Nov 8, 2011 at 9:31 PM, Peter Brett wrote:
> Nala Ginrut writes:
>
> > Here is the patch. It solved the problem like these:
> > @@ -1532,6 +1533,7 @@ scm_from_locale_string (const char *str)
> > SCM
> > scm_from_locale_stringn (const char *str, size_t len)
> > {
> > + setlocale (LC_A
Update of bug #33996 (project guile):
Status:None => Fixed
Open/Closed:Open => Closed
___
Follow-up Comment #1:
I think I have fixed
Nala Ginrut writes:
> Here is the patch. It solved the problem like these:
> @@ -1532,6 +1533,7 @@ scm_from_locale_string (const char *str)
> SCM
> scm_from_locale_stringn (const char *str, size_t len)
> {
> + setlocale (LC_ALL, "");
> return scm_from_stringn (str, len, locale_charset (),