diff options
author | Tor Lillqvist <tml@novell.com> | 2005-08-18 08:40:37 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-08-18 08:40:37 +0800 |
commit | d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1 (patch) | |
tree | 4e0bfe5d0ffd40657cc73cf90d56f3ed18d3d28b /e-util/e-iconv.c | |
parent | 9c8e0e983c7775634641281c901953d1b17c32c8 (diff) | |
download | gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.tar gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.tar.gz gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.tar.bz2 gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.tar.lz gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.tar.xz gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.tar.zst gsoc2013-evolution-d97bfb1db5f29d8b7d8f3e22d615b86705ccd3b1.zip |
Use g_get_charset() on Win32 to get locale charset. Free return value from
2005-08-18 Tor Lillqvist <tml@novell.com>
* e-iconv.c (e_iconv_init): Use g_get_charset() on Win32 to get
locale charset. Free return value from g_win32_getlocale().
svn path=/trunk/; revision=30151
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(); } |