Bug 2110 - Patch to use GB18030 for GB2312 and GBK X-GBK, and updated claws-mail.pot and zh_CN.po also summit
Summary: Patch to use GB18030 for GB2312 and GBK X-GBK, and updated claws-mail.pot and...
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.7.4
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-01-30 16:51 UTC by Yuwei Yu
Modified: 2010-03-11 09:19 UTC (History)
0 users

See Also:


Attachments
GB18030 patch (8.13 KB, patch)
2010-01-30 16:51 UTC, Yuwei Yu
no flags Details | Diff
patch to claws-mail.pot and zh_CN.po (102.12 KB, patch)
2010-01-30 16:52 UTC, Yuwei Yu
no flags Details | Diff

Description Yuwei Yu 2010-01-30 16:51:50 UTC
Created attachment 798 [details]
GB18030 patch

Charset GB18030 include all characters of GB2312 and GBK.

Some email include Chinese characters in GB18030 but only declare the encoding of GB2312. This is very common in Chinese emails, even the ones sent from gmail composed in IE.

I hacked a little to make GB18030 as fallback encoding for GB2312, GBK and X-GBK.

The patch to updated claws-mail.pot and zh_CN.po also attached.

Best regards.
Comment 1 Yuwei Yu 2010-01-30 16:52:28 UTC
Created attachment 799 [details]
patch to claws-mail.pot and zh_CN.po
Comment 2 Colin Leroy 2010-02-10 08:50:26 UTC
Concerning the encoding problem, I see what you mean : we have the same problem with ISO-8859-1 and WINDOWS-1252 in western Europe. I'll adapt your patch a bit to handle GB18030 the same way...

Concerning zh_CN.po, could you rather send the complete .po file to translations@thewildbeast.co.uk ? Line numbers change all the time and your patch doesn't apply anymore to CVS :)

Thanks!
Comment 3 Yuwei Yu 2010-02-14 16:18:24 UTC
thanks Leory :) I will send the po to it.
Comment 4 users 2010-03-11 09:16:36 UTC
Changes related to this bug have been committed.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.colino.net/claws-mail/

2010-03-11 [paul]	3.7.5cvs33

	* po/zh_CN.po
		fix bug 2110, 'Patch to use GB18030 for GB2312 and GBK X-GBK'
		submitted by Yuwei Yu

Note You need to log in before you can comment on or make changes to this bug.