GNOME Bugzilla – Bug 110491
Headers displayed with the wrong charset in the article pane
Last modified: 2006-06-18 05:10:53 UTC
Article headers should be converted from message charset to UTF-8. Currently it is only done in the headers pane. In article pane the headers are converted from _group's_ default charset to UTF-8. This leads to incorrect results when the article's charset and group's default charset don't match. I'll attach a sample message. It is encoded in UTF-8 (except for the subject). Take a look at "From" header. When the group's default charset is _not_ UTF-8, "From" is displayed correctly in the headers pane, but incorrectly in the articles pane. When the group's default charset is UTF-8, "From" is displayed correctly in the headers pane and also in the articles pane (as it should be).
Created attachment 15622 [details] sample message
Tõivo: any sample messages on a newsgroup I can test this with (my ISP doesn't carry ee.spam.l_spamlist) ?
Created attachment 15628 [details] [review] This is probably the fix, but I need to test it in a stable environment.
Hmm, when I was looking for sample messages in public groups, I noticed that all had 8-bit chars in the header encoded (for example my name =?iso-8859-1?q?=22T=F5ivo_Leedj=E4rv=22?=). So I did not find any "raw" UTF-8 headers. I applied your fix and it seems to work for me (so far it hasn't broken anything else).
Fixed in CVS: http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=text.c&rev1=1.357&rev2=1.358&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan&command=DIFF_FRAMESET&file=ANNOUNCE.html&rev1=1.120&rev2=1.121&root=/cvs/gnome