Fixed a bug in wsetlocale()

This commit is contained in:
Siteshwar Vashisht 2012-06-17 11:25:21 +05:30
parent 34fd8e0e00
commit 17567028da

View file

@ -555,7 +555,7 @@ wcstring wsetlocale(int category, const wchar_t *locale)
{
char *lang = NULL;
if (locale && wcscmp(locale,L"")){
if (locale){
lang = wcs2str( locale );
}
char * res = setlocale(category,lang);