Home » U++ Library support » U++ Core » i18n
Re: i18n [message #9711 is a reply to message #9709] |
Sat, 26 May 2007 18:01   |
|
This will fix the app crash , ie read beoyond the string
But I'm not sure where to search fo lack of "." or "," in double values
#ifdef PLATFORM_POSIX
int GetSystemLNG() {
static int lang;
INIT_LOCK (
String s = Environment().Get("LANG", Null);
if ( s.GetCount()>4 )
lang = LNGFromText(s);
else
lang = LNG_ENGLISH;
const char *q = strchr(s, '.');
if(q)
lang = SetLNGCharset(lang, CharsetByName(q + 1));
);
return lang;
};
#endif
|
|
|
Goto Forum:
Current Time: Mon Aug 25 19:55:35 CEST 2025
Total time taken to generate the page: 0.06263 seconds
|