[Commits] codeconv.h 1.15.2.29 1.15.2.30 procmime.c 1.49.2.154 1.49.2.155

claws at claws-mail.org claws at claws-mail.org
Mon Jan 21 18:11:28 CET 2013


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv16404/src

Modified Files:
      Tag: gtk2
	codeconv.h procmime.c 
Log Message:
2013-01-21 [paul]	3.9.0cvs57

	* src/codeconv.h
	* src/procmime.c
		fix bug 2862, 'Segmentation fault when replying to a
		message where the "code conversion" fails'. add support
		for X-VIET-VPS encoding 

Index: codeconv.h
===================================================================
RCS file: /home/claws-mail/claws/src/codeconv.h,v
retrieving revision 1.15.2.29
retrieving revision 1.15.2.30
diff -u -d -r1.15.2.29 -r1.15.2.30
--- codeconv.h	7 Jul 2012 07:30:56 -0000	1.15.2.29
+++ codeconv.h	21 Jan 2013 17:11:25 -0000	1.15.2.30
@@ -168,6 +168,7 @@
 #define CS_WINDOWS_874		"Windows-874"
 #define CS_GEORGIAN_PS		"GEORGIAN-PS"
 #define CS_TCVN5712_1		"TCVN5712-1"
+#define CS_X_VIET_VPS		"X-VIET-VPS"
 
 #define C_INTERNAL		C_UTF_8
 #define CS_INTERNAL		CS_UTF_8

Index: procmime.c
===================================================================
RCS file: /home/claws-mail/claws/src/procmime.c,v
retrieving revision 1.49.2.154
retrieving revision 1.49.2.155
diff -u -d -r1.49.2.154 -r1.49.2.155
--- procmime.c	12 Oct 2012 15:13:16 -0000	1.49.2.154
+++ procmime.c	21 Jan 2013 17:11:25 -0000	1.49.2.155
@@ -768,6 +768,8 @@
 		src_codeset = CS_GB18030;
 	else if (!forced_charset && src_codeset && !strcasecmp(src_codeset, CS_GB2312))
 		src_codeset = CS_GB18030;
+	else if (!forced_charset && src_codeset && !strcasecmp(src_codeset, CS_X_VIET_VPS))
+		src_codeset = CS_WINDOWS_874;
 
 	if (mimeinfo->type == MIMETYPE_TEXT && !g_ascii_strcasecmp(mimeinfo->subtype, "html")) {
 		SC_HTMLParser *parser;



More information about the Commits mailing list