diff options
author | Clive Lin <clive@FreeBSD.org> | 2003-10-09 04:14:26 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2003-10-09 04:14:26 +0000 |
commit | 4c5b38fed8a3147862bde8a1cf84193b3cca33df (patch) | |
tree | 1d56ff44f59fdc4bc575279403254760b76019e9 /chinese/tin/files/patch-mail.c | |
parent | fix dependency directory name. (diff) |
Improve multibyte ability, otherwise it is broken functionally.
PR: ports/57732
Submitted by: Cheng-Lung Sung <clsung@dragon2.net>
Diffstat (limited to '')
-rw-r--r-- | chinese/tin/files/patch-mail.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chinese/tin/files/patch-mail.c b/chinese/tin/files/patch-mail.c new file mode 100644 index 000000000000..63e977afc71d --- /dev/null +++ b/chinese/tin/files/patch-mail.c @@ -0,0 +1,15 @@ +--- src/mail.c.orig Sun Aug 10 21:27:36 2003 ++++ src/mail.c Wed Oct 8 14:52:42 2003 +@@ -327,7 +327,12 @@ + * + * TODO: change US-ASCII to UTF-8 when NNTP draft becomes RFC + */ ++#ifndef CHARSET_CONVERSION + process_charsets(&r, &r_len, "US-ASCII", tinrc.mm_local_charset, FALSE); ++#else ++ process_charsets(&r, &r_len, (CURR_GROUP.attribute->undeclared_charset) ? (CURR_GROUP.attribute->undeclared_charset) : "US-ASCII", tinrc.mm_local_charset, FALSE); ++#endif /* !CHARSET_CONVERSION */ ++ + group->description = convert_to_printable(r); + } + |