1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/chinese/tin/files/patch-mail.c
Clive Lin 4c5b38fed8 Improve multibyte ability, otherwise it is broken functionally.
PR:		ports/57732
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
2003-10-09 04:14:26 +00:00

16 lines
559 B
C

--- 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);
}