aboutsummaryrefslogtreecommitdiff
path: root/src/codeconv.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-12 08:35:04 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-12 08:35:04 +0000
commit0357b77bd93423f308ed98e31249e51a9d43ed5c (patch)
tree18d8dd6cb4a961942b97fc7b7c09785f2a60a8c7 /src/codeconv.h
parent92756e16f048184aec6bc0190c4e9b5fa20bed28 (diff)
support GBK (and X-GBK) encoding.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@211 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/codeconv.h')
-rw-r--r--src/codeconv.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/codeconv.h b/src/codeconv.h
index 44a4976f..c17cd84c 100644
--- a/src/codeconv.h
+++ b/src/codeconv.h
@@ -158,6 +158,7 @@ struct _CodeConverter
#define CS_EUC_CN "EUC-CN"
#define CS_GB2312 "GB2312"
#define CS_GBK "GBK"
+#define CS_X_GBK "X-GBK"
#define CS_EUC_TW "EUC-TW"
#define CS_BIG5 "Big5"
#define CS_BIG5_HKSCS "BIG5-HKSCS"
@@ -188,16 +189,16 @@ gchar *conv_convert (CodeConverter *conv,
(conv_codeset_strdup_full(inbuf, src_code, dest_code, NULL))
gchar *conv_codeset_strdup_full (const gchar *inbuf,
- const gchar *src_code,
- const gchar *dest_code,
+ const gchar *src_encoding,
+ const gchar *dest_encoding,
gint *error);
-CodeConvFunc conv_get_code_conv_func (const gchar *src_charset_str,
- const gchar *dest_charset_str);
+CodeConvFunc conv_get_code_conv_func (const gchar *src_encoding,
+ const gchar *dest_encoding);
gchar *conv_iconv_strdup (const gchar *inbuf,
- const gchar *src_code,
- const gchar *dest_code,
+ const gchar *src_encoding,
+ const gchar *dest_encoding,
gint *error);
gchar *conv_iconv_strdup_with_cd (const gchar *inbuf,
iconv_t cd,