View | Details | Raw Unified | Return to bug 57732
Collapse All | Expand All

(-)tin/Makefile (+2 lines)
Lines 13-18 Link Here
13
MAINTAINER=	yssu@CCCA.NCTU.edu.tw
13
MAINTAINER=	yssu@CCCA.NCTU.edu.tw
14
14
15
EXTRA_PATCHES=	${.CURDIR}/files/patch-attrib.c \
15
EXTRA_PATCHES=	${.CURDIR}/files/patch-attrib.c \
16
		${.CURDIR}/files/patch-cook.c \
17
		${.CURDIR}/files/patch-mail.c \
16
		${.CURDIR}/files/patch-init.c
18
		${.CURDIR}/files/patch-init.c
17
19
18
.include "${MASTERDIR}/Makefile"
20
.include "${MASTERDIR}/Makefile"
(-)tin/files/patch-cook.c (+15 lines)
Line 0 Link Here
1
--- src/cook.c.orig	Tue Aug 26 20:34:07 2003
2
+++ src/cook.c	Wed Oct  8 15:05:05 2003
3
@@ -719,7 +719,12 @@
4
 			break;	/* premature end of file, file error etc. */
5
 
6
 		/* convert network to local charset, tex2iso, iso2asc etc. */
7
+#ifndef CHARSET_CONVERSION
8
 		process_charsets(&line, &max_line_len, get_param(part->params, "charset"), tinrc.mm_local_charset, CURR_GROUP.attribute->tex2iso_conv && art->tex2iso);
9
+#else
10
+		// force to use undeclared_charset first
11
+		process_charsets(&line, &max_line_len, (CURR_GROUP.attribute->undeclared_charset) ? (CURR_GROUP.attribute->undeclared_charset) : get_param(part->params, "charset"), tinrc.mm_local_charset, CURR_GROUP.attribute->tex2iso_conv && art->tex2iso);
12
+#endif /* !CHARSET_CONVERSION */
13
 
14
 		len = (int) strlen(line);
15
 
(-)tin/files/patch-mail.c (+15 lines)
Line 0 Link Here
1
--- src/mail.c.orig	Sun Aug 10 21:27:36 2003
2
+++ src/mail.c	Wed Oct  8 14:52:42 2003
3
@@ -327,7 +327,12 @@
4
 			 *
5
 			 * TODO: change US-ASCII to UTF-8 when NNTP draft becomes RFC
6
 			 */
7
+#ifndef CHARSET_CONVERSION
8
 			process_charsets(&r, &r_len, "US-ASCII", tinrc.mm_local_charset, FALSE);
9
+#else
10
+			process_charsets(&r, &r_len, (CURR_GROUP.attribute->undeclared_charset) ? (CURR_GROUP.attribute->undeclared_charset) : "US-ASCII", tinrc.mm_local_charset, FALSE);
11
+#endif /* !CHARSET_CONVERSION */
12
+
13
 			group->description = convert_to_printable(r);
14
 		}
15

Return to bug 57732