forked from Lainports/opnsense-ports
16 lines
484 B
C
16 lines
484 B
C
--- eglib/src/gunicode.c.orig 2015-09-24 09:36:09 UTC
|
|
+++ eglib/src/gunicode.c
|
|
@@ -219,10 +219,10 @@ g_get_charset (G_CONST_RETURN char **cha
|
|
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
|