From f075981330f256cbafeed15cbe838313474b7537 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sat, 10 May 2014 08:35:27 +0100 Subject: Bug fix imported from Mixbus2 (SVN r11025) Fix a crashing bug when trying to launch in a non-English locale (possibly only affects Windows) --- libs/ardour/globals.cc | 1 + libs/gtkmm2ext/utils.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'libs') 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 } -- cgit v1.2.3