Samprayoga
Programmer
Hello,
I use the following source code to get the os Language:
int getOsLanguage(string& strOsLanguage){
char* strLang;
string strOsLanguage
size_t new_size = 0;
setlocale(LC_ALL,""
strLang = setlocale(LC_ALL,0);
if(strLang == 0)
return 1;
strOsLanguage.assign(strLang);
return 0;
}
Unfortunetally strOsLanguage is equal to "C"??
Why?
Is anybody can help me?
PS:I use Sun Solaris 5.5.1.
S.
I use the following source code to get the os Language:
int getOsLanguage(string& strOsLanguage){
char* strLang;
string strOsLanguage
size_t new_size = 0;
setlocale(LC_ALL,""
strLang = setlocale(LC_ALL,0);
if(strLang == 0)
return 1;
strOsLanguage.assign(strLang);
return 0;
}
Unfortunetally strOsLanguage is equal to "C"??
Why?
Is anybody can help me?
PS:I use Sun Solaris 5.5.1.
S.