aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-06-17 11:25:21 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-06-17 11:25:21 +0530
commit17567028dace634465b3a9af34c6338a832d05e1 (patch)
tree482d7abc0b51e7f19c9a06cb073ef66b156090b3 /common.cpp
parent34fd8e0e00a701f399b61e069c601c59e31b10e9 (diff)
Fixed a bug in wsetlocale()
Diffstat (limited to 'common.cpp')
-rw-r--r--common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.cpp b/common.cpp
index a7289e75..b6639e10 100644
--- a/common.cpp
+++ b/common.cpp
@@ -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);