diff options
Diffstat (limited to 'e-util/e-iconv.c')
-rw-r--r-- | e-util/e-iconv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index 6cf3987021..65f19b3b4a 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -300,6 +300,11 @@ e_iconv_init(int keep) locale_charset = NULL; locale_lang = NULL; } else { +#ifdef G_OS_WIN32 + g_get_charset (&locale_charset); + locale_charset = g_strdup (locale_charset); + e_strdown (locale_charset); +#else #ifdef HAVE_CODESET locale_charset = g_strdup (nl_langinfo (CODESET)); e_strdown (locale_charset); @@ -325,12 +330,16 @@ e_iconv_init(int keep) locale_charset = NULL; } #endif +#endif /* !G_OS_WIN32 */ /* parse the locale lang */ locale_parse_lang (locale); } +#ifdef G_OS_WIN32 + g_free (locale); +#endif if (!keep) UNLOCK(); } |