13
0

force UTF-8 handling of i18n files at run time

git-svn-id: svn://localhost/ardour2/trunk@1358 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-01-18 12:52:26 +00:00
parent d25718377d
commit 63daceea64

View File

@ -367,6 +367,11 @@ int main (int argc, char *argv[])
gtk_set_locale ();
(void) bindtextdomain (PACKAGE, LOCALEDIR);
/* our i18n translations are all in UTF-8, so make sure
that even if the user locale doesn't specify UTF-8,
we use that when handling them.
*/
(void) bind_textdomain_codeset (PACKAGE,"UTF-8");
(void) textdomain (PACKAGE);
pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, 0);