summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-19 00:00:45 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-19 00:00:45 +0100
commit8876defcb2786b4211c9857508c042902a677c4b (patch)
tree47bd4e3ed2ae8277da201dfdba03f12a5f7f2029 /src
parentca50121f514c1a7302a583628789337c6868c290 (diff)
Use C rather than POSIX for a simple known i18n for the LocaleGuard. This seems to work on both Linux and Windows.
Diffstat (limited to 'src')
-rw-r--r--src/lib/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index f5bcdf12c..2f8be6edd 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -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");
}
}
}