mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
trying to get to the bottom of the decimal comma.
This commit is contained in:
parent
2b7a047e92
commit
3d7cbe9d94
1 changed files with 3 additions and 1 deletions
|
|
@ -43,8 +43,10 @@ LocaleGuard::LocaleGuard ()
|
||||||
the numeric locale during its lifetime, so make it so.
|
the numeric locale during its lifetime, so make it so.
|
||||||
*/
|
*/
|
||||||
old_c = strdup (actual);
|
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));
|
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 ()) {
|
if (old_cpp != std::locale::classic ()) {
|
||||||
PBD::error << "LocaleGuard: initial C++ locale is not 'C'. Expect non-portable session files.\n";
|
PBD::error << "LocaleGuard: initial C++ locale is not 'C'. Expect non-portable session files.\n";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue