diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-22 07:37:01 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-22 07:37:01 +0000 |
commit | f0314c16b1392a2021874136f80fd9350f16fe84 (patch) | |
tree | 2f46062c8e00fc907b835417724a6739bb96aba2 /src/codeconv.h | |
parent | 951ba1bd0fd5582c507a807b5fe0dd8454b5271c (diff) |
made error check strict on Japanese code conversion.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@185 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/codeconv.h')
-rw-r--r-- | src/codeconv.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/codeconv.h b/src/codeconv.h index c322f61a..44a4976f 100644 --- a/src/codeconv.h +++ b/src/codeconv.h @@ -92,7 +92,7 @@ typedef enum C_TCVN5712_1 } CharSet; -typedef gchar *(*CodeConvFunc) (const gchar *inbuf); +typedef gchar *(*CodeConvFunc) (const gchar *inbuf, gint *error); struct _CodeConverter { @@ -173,8 +173,10 @@ struct _CodeConverter CharSet conv_guess_ja_encoding (const gchar *str); -gchar *conv_utf8todisp (const gchar *inbuf); -gchar *conv_localetodisp (const gchar *inbuf); +gchar *conv_utf8todisp (const gchar *inbuf, + gint *error); +gchar *conv_localetodisp (const gchar *inbuf, + gint *error); CodeConverter *conv_code_converter_new (const gchar *src_encoding, const gchar *dest_encoding); @@ -182,9 +184,9 @@ void conv_code_converter_destroy (CodeConverter *conv); gchar *conv_convert (CodeConverter *conv, const gchar *inbuf); -gchar *conv_codeset_strdup (const gchar *inbuf, - const gchar *src_code, - const gchar *dest_code); +#define conv_codeset_strdup(inbuf, src_code, dest_code) \ + (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, |