aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-utf8.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-28 15:45:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-28 15:45:17 +0800
commit76d4c1a98efaab7d5d06edcde2ede189aa9b39e6 (patch)
tree85af8658acad1fe77c03a4576f0d5b6654f94350 /camel/camel-utf8.h
parent2839143b0b274ce88a7495a005109ab7d89e676d (diff)
downloadgsoc2013-evolution-76d4c1a98efaab7d5d06edcde2ede189aa9b39e6.tar.gz
gsoc2013-evolution-76d4c1a98efaab7d5d06edcde2ede189aa9b39e6.tar.zst
gsoc2013-evolution-76d4c1a98efaab7d5d06edcde2ede189aa9b39e6.zip
fixes a crash on systems that dont have utf7 in iconv.
2002-08-28 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c (imap_mailbox_encode): Chagned to use camel_utf8_utf7 code. (imap_mailbox_decode): As above, using camel_utf8_utf7. 'UTF-7' isn't a widely support iconv() codeset, and besides the new code is simpler. * camel-utf8.[ch]: robust utilities for working with utf8 and utf7. svn path=/trunk/; revision=17886
Diffstat (limited to 'camel/camel-utf8.h')
-rw-r--r--camel/camel-utf8.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/camel/camel-utf8.h b/camel/camel-utf8.h
new file mode 100644
index 0000000000..7d6fac5410
--- /dev/null
+++ b/camel/camel-utf8.h
@@ -0,0 +1,16 @@
+
+#ifndef _CAMEL_UTF8_H
+#define _CAMEL_UTF8_H
+
+void camel_utf8_putc(unsigned char **ptr, guint32 c);
+guint32 camel_utf8_getc(const unsigned char **ptr);
+
+/* utility func for utf8 gstrings */
+void g_string_append_u(GString *out, guint32 c);
+
+/* convert utf7 to/from utf8, actually this is modified IMAP utf7 */
+char *camel_utf7_utf8(const char *ptr);
+char *camel_utf8_utf7(const char *ptr);
+
+
+#endif /* ! _CAMEL_UTF8_H */