aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-10-14 02:56:38 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-14 02:56:38 +0800
commitf5b66ae8474b135081d47864834e645530eb44cc (patch)
tree2dde63ae7d7b70ed2feac569f46eb4466df666d0
parenta60f38bc6e65a53c3598e9e22ebf5bfa3a76e27e (diff)
downloadgsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.tar
gsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.tar.gz
gsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.tar.bz2
gsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.tar.lz
gsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.tar.xz
gsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.tar.zst
gsoc2013-evolution-f5b66ae8474b135081d47864834e645530eb44cc.zip
Added special case for iso-10646-1 -> ucs-2be encoding since its not
2001-10-14 Not Zed <NotZed@Ximian.com> * 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
-rw-r--r--e-util/e-iconv.c10
1 files changed, 10 insertions, 0 deletions
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 */