mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
gio tools: Use the proper string for default locale for setlocale()
This makes use of the string we now have from glib-private.h in the last commit so that setlocale() sets the default system locale correctly and therefore show the translated messages properly. Fixes issue #1169.
This commit is contained in:
@@ -41,9 +41,7 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include <gi18n.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include "glib/glib-private.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBELF) && defined(HAVE_MMAP)
|
||||
#define USE_LIBELF
|
||||
@@ -610,7 +608,7 @@ main (int argc, char *argv[])
|
||||
gchar *tmp;
|
||||
#endif
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
setlocale (LC_ALL, GLIB_DEFAULT_LOCALE);
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
|
Reference in New Issue
Block a user