|
diff -uNrp pan-0.14.2.91.orig/pan/message-window.c pan-0.14.2.91.new/pan/message-window.c
--- pan-0.14.2.91.orig/pan/message-window.c 2003-11-25 05:33:39.000000000 +0800
+++ pan-0.14.2.91.new/pan/message-window.c 2004-02-26 00:08:48.425907272 +0800
@@ -2350,7 +2350,18 @@ populate_message_from_mw (GMimeMessage*
/* newsgroups (for posting articles) */
pch = message_window_get_group_str (mw->newsgroups);
if (is_nonempty_string (pch))
- g_mime_message_set_header (message, HEADER_NEWSGROUPS, pch);
+ {
+ gchar* plocalchar = g_locale_from_utf8(pch, -1, NULL, NULL, NULL);
+ if (plocalchar != NULL)
+ {
+ g_mime_message_set_header(message, HEADER_NEWSGROUPS, plocalchar);
+ g_free(plocalchar);
+ }
+ else
+ {
+ g_mime_message_set_header (message, HEADER_NEWSGROUPS, pch);
+ }
+ }
g_free (pch);
/* references (for posting articles) */
@@ -2368,7 +2379,18 @@ populate_message_from_mw (GMimeMessage*
/* followup-to */
pch = message_window_get_group_str(mw->followup_to);
if (is_nonempty_string (pch))
- g_mime_message_set_header (message, HEADER_FOLLOWUP_TO, pch);
+ {
+ gchar* plocalchar = g_locale_from_utf8(pch, -1, NULL, NULL, NULL);
+ if (plocalchar != NULL)
+ {
+ g_mime_message_set_header(message, HEADER_FOLLOWUP_TO, plocalchar);
+ g_free(plocalchar);
+ }
+ else
+ {
+ g_mime_message_set_header (message, HEADER_FOLLOWUP_TO, pch);
+ }
+ }
g_free (pch);
/* reply-to */ |
|