diff options
Diffstat (limited to 'eglib/src/gunicode.c')
-rw-r--r-- | eglib/src/gunicode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eglib/src/gunicode.c b/eglib/src/gunicode.c index c3a9000f8d2..e6f4b925b61 100644 --- a/eglib/src/gunicode.c +++ b/eglib/src/gunicode.c @@ -219,10 +219,10 @@ g_get_charset (G_CONST_RETURN char **charset) is_utf8 = FALSE; #else /* These shouldn't be heap allocated */ -#if HAVE_LOCALCHARSET_H - my_charset = locale_charset (); -#elif defined(HAVE_LANGINFO_H) +#if defined(HAVE_LANGINFO_H) my_charset = nl_langinfo (CODESET); +#elif defined(HAVE_LOCALCHARSET_H) + my_charset = locale_charset (); #else my_charset = "UTF-8"; #endif |