summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-14 11:36:40 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-07-14 11:37:48 -0400
commit521fe586d71e9eb125dbaf7b98730f8b398e834b (patch)
tree4951e471fcc3017b99193eb89988e340469994e3 /gtk2_ardour/main.cc
parent58657edfb3f3705366f88cd0cfec8e1d08cee97d (diff)
correctly initialize C++ locale as well as C locale
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index ef35ac64b4..0fa6f53fe1 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -296,7 +296,9 @@ int main (int argc, char *argv[])
#endif
#ifdef ENABLE_NLS
+ /* initialize C and C++ locales to user preference */
setlocale (LC_ALL, "");
+ std::locale::global (std::locale (setlocale (LC_ALL, 0)));
#endif
console_madness_begin();