From 17567028dace634465b3a9af34c6338a832d05e1 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Sun, 17 Jun 2012 11:25:21 +0530 Subject: [PATCH] Fixed a bug in wsetlocale() --- common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.cpp b/common.cpp index a7289e752..b6639e100 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);