Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » i18n
Re: i18n [message #9711 is a reply to message #9709] Sat, 26 May 2007 18:01 Go to previous messageGo to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Adding subclass objects to base class array using AppendPick()
Next Topic: Format of GetSysTime()
Goto Forum:
  


Current Time: Mon Aug 25 12:36:18 CEST 2025

Total time taken to generate the page: 0.09554 seconds