diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-26 06:14:42 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-26 06:14:42 +0000 |
commit | 0a29ffb9650075946e30615a2e1cdcfa2a988015 (patch) | |
tree | e3eb1417650f9b6261958ec80e47cc73c7863421 /src/codeconv.c | |
parent | fe5e7d7f82d82dc82d045fca77b00af5308d4bf2 (diff) |
added constant C_INTERNAL and CS_INTERNAL.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@41 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/codeconv.c')
-rw-r--r-- | src/codeconv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/codeconv.c b/src/codeconv.c index 0623421c..3063b4f0 100644 --- a/src/codeconv.c +++ b/src/codeconv.c @@ -809,7 +809,7 @@ void conv_localetodisp(gchar *outbuf, gint outlen, const gchar *inbuf) gchar *tmpstr; tmpstr = conv_iconv_strdup(inbuf, conv_get_locale_charset_str(), - conv_get_internal_charset_str()); + CS_INTERNAL); if (tmpstr) { strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); @@ -969,7 +969,7 @@ gchar *conv_iconv_strdup(const gchar *inbuf, if (!src_code) src_code = conv_get_outgoing_charset_str(); if (!dest_code) - dest_code = conv_get_internal_charset_str(); + dest_code = CS_INTERNAL; /* don't convert if src and dest codeset are identical */ if (!strcasecmp(src_code, dest_code)) @@ -1423,17 +1423,17 @@ const gchar *conv_get_locale_charset_str(void) if (!codeset) codeset = conv_get_charset_str(conv_get_locale_charset()); - return codeset ? codeset : CS_UTF_8; + return codeset ? codeset : CS_INTERNAL; } CharSet conv_get_internal_charset(void) { - return C_UTF_8; + return C_INTERNAL; } const gchar *conv_get_internal_charset_str(void) { - return CS_UTF_8; + return CS_INTERNAL; } CharSet conv_get_outgoing_charset(void) @@ -1626,7 +1626,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src, mimesep_enc = "?Q?"; } - cur_encoding = conv_get_internal_charset_str(); + cur_encoding = CS_INTERNAL; out_encoding = conv_get_outgoing_charset_str(); if (!strcmp(out_encoding, CS_US_ASCII)) out_encoding = CS_ISO_8859_1; |