diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-07 01:22:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-07 01:22:32 +0200 |
commit | 3d7cbe9d942e6dd37c68be6869b31e3de46ef39f (patch) | |
tree | 1f03323f8115aa502bcb084759303bb73cbb5030 /libs | |
parent | 2b7a047e92bc5ebe3287860ff9c9f2fb0acb193c (diff) |
trying to get to the bottom of the decimal comma.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/pbd/locale_guard.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/pbd/locale_guard.cc b/libs/pbd/locale_guard.cc index 8007ea001b..6e95ea9dcd 100644 --- a/libs/pbd/locale_guard.cc +++ b/libs/pbd/locale_guard.cc @@ -43,8 +43,10 @@ LocaleGuard::LocaleGuard () the numeric locale during its lifetime, so make it so. */ old_c = strdup (actual); - /* this changes both C++ and C locale */ + /* this changes both C++ and C locale (according to specs) */ std::locale::global (std::locale (std::locale::classic(), "C", std::locale::numeric)); + /* ..but maybe not.. */ + setlocale (LC_NUMERIC, "C"); } if (old_cpp != std::locale::classic ()) { PBD::error << "LocaleGuard: initial C++ locale is not 'C'. Expect non-portable session files.\n"; |