diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-17 11:25:21 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-17 11:25:21 +0530 |
commit | 17567028dace634465b3a9af34c6338a832d05e1 (patch) | |
tree | 482d7abc0b51e7f19c9a06cb073ef66b156090b3 /common.cpp | |
parent | 34fd8e0e00a701f399b61e069c601c59e31b10e9 (diff) |
Fixed a bug in wsetlocale()
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |