Use C rather than POSIX for a simple known i18n for the LocaleGuard. This seems...
authorCarl Hetherington <cth@carlh.net>
Sat, 18 May 2013 23:00:45 +0000 (00:00 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 18 May 2013 23:00:45 +0000 (00:00 +0100)
src/lib/util.cc

index f5bcdf12cb3129733ab673e6c5ef5e035109bc98..2f8be6edde675dc37de0c1336b7d3a406bcf61fe 100644 (file)
@@ -1076,8 +1076,8 @@ LocaleGuard::LocaleGuard ()
 
         if (old) {
                 _old = strdup (old);
-                if (strcmp (_old, "POSIX")) {
-                        setlocale (LC_NUMERIC, "POSIX");
+                if (strcmp (_old, "C")) {
+                        setlocale (LC_NUMERIC, "C");
                 }
         }
 }