aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-26 06:14:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-26 06:14:42 +0000
commit0a29ffb9650075946e30615a2e1cdcfa2a988015 (patch)
treee3eb1417650f9b6261958ec80e47cc73c7863421 /src/compose.c
parentfe5e7d7f82d82dc82d045fca77b00af5308d4bf2 (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/compose.c')
-rw-r--r--src/compose.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/compose.c b/src/compose.c
index 495f10c6..370ccf47 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1561,9 +1561,7 @@ static gchar *compose_get_signature_str(Compose *compose)
if (sig_str) {
utf8_sig_str = conv_codeset_strdup
- (sig_str,
- conv_get_locale_charset_str(),
- conv_get_internal_charset_str());
+ (sig_str, conv_get_locale_charset_str(), CS_INTERNAL);
g_free(sig_str);
}
@@ -1597,8 +1595,7 @@ static void compose_insert_file(Compose *compose, const gchar *file)
while (fgets(buf, sizeof(buf), fp) != NULL) {
gchar *str;
- str = conv_codeset_strdup
- (buf, cur_encoding, conv_get_internal_charset_str());
+ str = conv_codeset_strdup(buf, cur_encoding, CS_INTERNAL);
if (!str) continue;
/* strip <CR> if DOS/Windows file,
@@ -2760,7 +2757,7 @@ static gint compose_write_to_file(Compose *compose, const gchar *file,
encoding = ENC_BASE64;
#endif
- src_codeset = conv_get_internal_charset_str();
+ src_codeset = CS_INTERNAL;
debug_print("src encoding = %s, out encoding = %s, transfer encoding = %s\n",
src_codeset, out_codeset, procmime_get_encoding_str(encoding));
@@ -2947,9 +2944,8 @@ static gint compose_write_body_to_file(Compose *compose, const gchar *file)
gtk_text_buffer_get_end_iter(buffer, &end);
tmp = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
- chars = conv_codeset_strdup(tmp,
- conv_get_internal_charset_str(),
- conv_get_locale_charset_str());
+ chars = conv_codeset_strdup
+ (tmp, CS_INTERNAL, conv_get_locale_charset_str());
g_free(tmp);