From 35ee1586fc9f5726b2921cba303f2152362c7906 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Sat, 13 Oct 2001 02:13:20 +0000 Subject: tweak the conversion routine slightly for microsoft charsets. 2001-10-12 Larry Ewing * gal/util/e-iconv.c (e_iconv_charset_name): tweak the conversion routine slightly for microsoft charsets. svn path=/trunk/; revision=13648 --- e-util/e-iconv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'e-util/e-iconv.c') diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index da9b60cb64..15f2214b73 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -269,11 +269,12 @@ const char *e_iconv_charset_name(const char *charset) if (tmp[0] == '_' || tmp[0] == '-') tmp++; #ifdef ICONV_ISO_NEEDS_DASH - ret = g_strdup_printf("iso-%s", tmp); + ret = g_strdup_printf("ISO-%s", tmp); #else ret = g_strdup_printf("ISO%s", tmp); #endif - } else if (strncmp(name, "windows-", 8) == 0) { + } else if ((strncmp(name, "windows-", 8) == 0) + || strncmp(name, "microsoft-", 10) == 0) { /* Convert windows-nnnnn or windows-cpnnnnn to cpnnnn */ tmp = name+8; if (strncmp(tmp, "cp", 2)) @@ -422,3 +423,4 @@ const char *e_iconv_locale_charset(void) return locale_charset; } + -- cgit v1.2.3