diff options
Diffstat (limited to 'gdk/x11/gdkim-x11.c')
-rw-r--r-- | gdk/x11/gdkim-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkim-x11.c b/gdk/x11/gdkim-x11.c index c28ecea88c..182bb3b4e0 100644 --- a/gdk/x11/gdkim-x11.c +++ b/gdk/x11/gdkim-x11.c @@ -99,7 +99,7 @@ gdk_set_locale (void) if (!XSetLocaleModifiers ("")) g_message ("can not set locale modifiers"); - current_locale = setlocale (LC_ALL, ""); + current_locale = setlocale (LC_ALL, NULL); if ((strcmp (current_locale, "C")) && (strcmp (current_locale, "POSIX"))) { @@ -126,7 +126,7 @@ gdk_set_locale (void) g_message ("%s multi-byte string functions.", gdk_use_mb ? "Using" : "Not using")); - return setlocale (LC_ALL,NULL); + return current_locale; } #ifdef USE_XIM |