diff options
author | Larry Ewing <lewing@ximian.com> | 2001-10-13 10:13:20 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-10-13 10:13:20 +0800 |
commit | 35ee1586fc9f5726b2921cba303f2152362c7906 (patch) | |
tree | 2b876ab8dd555b32c4412b6ff635f6a35947e7a7 /e-util/e-iconv.c | |
parent | de99472df4d679e458bf44c59bf98cf6c39eceed (diff) | |
download | gsoc2013-evolution-35ee1586fc9f5726b2921cba303f2152362c7906.tar.gz gsoc2013-evolution-35ee1586fc9f5726b2921cba303f2152362c7906.tar.zst gsoc2013-evolution-35ee1586fc9f5726b2921cba303f2152362c7906.zip |
tweak the conversion routine slightly for microsoft charsets.
2001-10-12 Larry Ewing <lewing@ximian.com>
* gal/util/e-iconv.c (e_iconv_charset_name): tweak the conversion
routine slightly for microsoft charsets.
svn path=/trunk/; revision=13648
Diffstat (limited to 'e-util/e-iconv.c')
-rw-r--r-- | e-util/e-iconv.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } + |