diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-14 08:08:32 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-14 08:08:32 +0000 |
commit | 13cda7cefaab6b0eef7b4718629f8ce31cd9eff0 (patch) | |
tree | 26a6f3ec89fcaf68b0420db33cf2f3b350eeefc3 /src/codeconv.h | |
parent | 01109639c07dc4babec7912a8febfe1f989b1b0d (diff) |
fix code conversions, add conv_iconv_strdup_with_cd(), and use EUC-JP-MS for JIS to UTF-8 conversion if available.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@7 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/codeconv.h')
-rw-r--r-- | src/codeconv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/codeconv.h b/src/codeconv.h index 6a498af6..71e0a20b 100644 --- a/src/codeconv.h +++ b/src/codeconv.h @@ -25,6 +25,7 @@ #endif #include <glib.h> +#include <iconv.h> typedef struct _CodeConverter CodeConverter; @@ -74,6 +75,7 @@ typedef enum C_ISO_2022_JP_2, C_ISO_2022_JP_3, C_EUC_JP, + C_EUC_JP_MS, C_SHIFT_JIS, C_ISO_2022_KR, C_EUC_KR, @@ -145,6 +147,7 @@ struct _CodeConverter #define CS_ISO_2022_JP_3 "ISO-2022-JP-3" #define CS_EUC_JP "EUC-JP" #define CS_EUCJP "EUCJP" +#define CS_EUC_JP_MS "EUC-JP-MS" #define CS_SHIFT_JIS "Shift_JIS" #define CS_SHIFT__JIS "SHIFT-JIS" #define CS_SJIS "SJIS" @@ -208,6 +211,8 @@ CodeConvFunc conv_get_code_conv_func (const gchar *src_charset_str, gchar *conv_iconv_strdup (const gchar *inbuf, const gchar *src_code, const gchar *dest_code); +gchar *conv_iconv_strdup_with_cd (const gchar *inbuf, + iconv_t cd); const gchar *conv_get_charset_str (CharSet charset); CharSet conv_get_charset_from_str (const gchar *charset); |