From f5b66ae8474b135081d47864834e645530eb44cc Mon Sep 17 00:00:00 2001 From: Not Zed Date: Sat, 13 Oct 2001 18:56:38 +0000 Subject: Added special case for iso-10646-1 -> ucs-2be encoding since its not 2001-10-14 Not Zed * gal/util/e-iconv.c: Added special case for iso-10646-1 -> ucs-2be encoding since its not always available. svn path=/trunk/; revision=13663 --- e-util/e-iconv.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'e-util') diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index a90b80b9f1..97c290e1c9 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -119,8 +119,18 @@ struct { e_iconv_charset_name() so I'm not going to bother putting them all in here either... */ #endif + /* charset name (lowercase!), iconv-friendly name (sometimes case sensitive) */ { "utf-8", "UTF-8" }, + /* 10646 is a special case, its usually UCS-2 big endian */ + /* This might need some checking but should be ok for solaris/linux */ + { "iso-10646-1", "UCS-2BE" }, + { "iso_10646-1", "UCS-2BE" }, + { "iso10646-1", "UCS-2BE" }, + { "iso-10646", "UCS-2BE" }, + { "iso_10646", "UCS-2BE" }, + { "iso10646", "UCS-2BE" }, + { "ks_c_5601-1987", "EUC-KR" }, /* FIXME: Japanese/Korean/Chinese stuff needs checking */ -- cgit v1.2.3