Re: ICU default locale and setlocale
George Rhoten <[email protected]>
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <OF2114C524.C369F4DE-ON86256D65.006FA343-88256D65.006FB4F9@us.ibm.com> |
I believe your request is related to this jitterbug http://www.jtcsv.com/cgibin/icu-bugs/?findid=2777 That is scheduled to be fixed in ICU 2.8. George Rhoten IBM Globalization Center of Competency/ICU San Jose, CA, USA "Zartaj T. Majeed" <[email protected]> Sent by: [email protected] 07/16/2003 12:31 PM To: "Icu" <[email protected]> cc: Subject: ICU default locale and setlocale The following applies to Unix and other systems providing setlocale. The ICU default locale seems to not take into account setlocale calls in a program. The default locale remains whatever was in effect the first time the default locale was set. I would like to have the default locale reflect the program's current locale. Also related is the behavior of ucnv_setDefaultName. It returns the encoding associated with the default locale if that can be determined; if not it returns the value of the LC_CTYPE environment variable by doing setlocale(LC_CTYPE, ""). The setlocale call should instead be setlocale(LC_CTYPE, NULL) so that again the program's current locale is taken into account and not the locale in effect when the program was launched. Thanks, Zartaj _______________________________________________ icu mailing list [email protected] http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu