Re: [PATCH] fix locale string reading

2011-11-08 Thread Nala Ginrut
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

Re: [PATCH] fix locale string reading

2011-11-08 Thread Nala Ginrut
Sorry, it's my fault. setlocale(LC_ALL,"") is not query. setlocale(LC_ALL,NULL) does. So it's a wrong patch. Thanks Petter.

Re: [PATCH] fix locale string reading

2011-11-08 Thread Nala Ginrut
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

[bug #33996] 2.0.2: Crash related to ports and threads

2011-11-08 Thread Andy Wingo
Update of bug #33996 (project guile): Status:None => Fixed Open/Closed:Open => Closed ___ Follow-up Comment #1: I think I have fixed

Re: [PATCH] fix locale string reading

2011-11-08 Thread Peter Brett
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 (),