summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-05-10 08:35:27 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2014-05-10 08:35:27 +0100
commitf075981330f256cbafeed15cbe838313474b7537 (patch)
treeda458fe09f3e2fcf9b72c1d929b79ce8a6c34217 /libs
parentb377bc44c2e7257ba0d52ca554398c05bc40198f (diff)
Bug fix imported from Mixbus2 (SVN r11025)
Fix a crashing bug when trying to launch in a non-English locale (possibly only affects Windows)
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/globals.cc1
-rw-r--r--libs/gtkmm2ext/utils.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc
index 8bee4ec902..39bcd1b79e 100644
--- a/libs/ardour/globals.cc
+++ b/libs/ardour/globals.cc
@@ -241,6 +241,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir
#ifdef ENABLE_NLS
(void) bindtextdomain(PACKAGE, localedir);
+ (void) bind_textdomain_codeset (PACKAGE, "UTF-8");
#endif
SessionEvent::init_event_pool ();
diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc
index 4c85f1928d..d3a593a68f 100644
--- a/libs/gtkmm2ext/utils.cc
+++ b/libs/gtkmm2ext/utils.cc
@@ -42,6 +42,7 @@ Gtkmm2ext::init (const char* localedir)
{
#ifdef ENABLE_NLS
(void) bindtextdomain(PACKAGE, localedir);
+ (void) bind_textdomain_codeset (PACKAGE, "UTF-8");
#endif
}