Bug fix imported from Mixbus2 (SVN r11025)

Fix a crashing bug when trying to launch in a non-English locale (possibly only affects Windows)
This commit is contained in:
John Emmas 2014-05-10 08:35:27 +01:00 committed by Paul Davis
parent 76a4a06b1c
commit 0a43a0fb6a
2 changed files with 2 additions and 0 deletions

View file

@ -244,6 +244,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
(void) bindtextdomain(PACKAGE, localedir); (void) bindtextdomain(PACKAGE, localedir);
(void) bind_textdomain_codeset (PACKAGE, "UTF-8");
#endif #endif
SessionEvent::init_event_pool (); SessionEvent::init_event_pool ();

View file

@ -42,6 +42,7 @@ Gtkmm2ext::init (const char* localedir)
{ {
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
(void) bindtextdomain(PACKAGE, localedir); (void) bindtextdomain(PACKAGE, localedir);
(void) bind_textdomain_codeset (PACKAGE, "UTF-8");
#endif #endif
} }