tools: Support non-ASCII tags

By calling setlocale() to get us multi-byte/UTF-8 support.

https://bugzilla.gnome.org/show_bug.cgi?id=723164
This commit is contained in:
Sebastian Dröge 2014-01-30 21:24:21 +01:00
parent 8ee77efbed
commit c1ec592ec2
3 changed files with 6 additions and 0 deletions

View file

@ -1458,6 +1458,8 @@ main (int argc, char *argv[])
GError *err = NULL;
#endif
setlocale (LC_ALL, "");
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");

View file

@ -930,6 +930,8 @@ main (int argc, char *argv[])
free (malloc (8)); /* -lefence */
setlocale (LC_ALL, "");
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");

View file

@ -147,6 +147,8 @@ main (int argc, char *argv[])
{NULL}
};
setlocale (LC_ALL, "");
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");