GNOME Bugzilla – Bug 109004
8 bits characters in subject some times are missing
Last modified: 2006-06-18 05:10:05 UTC
Pan 0.13.91 When a subject contains 8 bits characters (RFC2047 encoded or not) like : Subject: א propos Subject: a יי Pan doesn't display the 'א' or the 'יי' in the body pane and in the reply. It displays : Subject: propos Subject: a Subjects in the headers pane are well displayed.
Can't reproduce this on my system. Could you give us: - a sample (one encoded, one raw, if possible) of a message where you're seeing this. - the group's charset - your locale. Thanks.
It seems to work with RFC 2047 encoding (sorry) but a sample with raw 8 bits : From: Patrick Lamaizière <plamaiziere@alussinan.org> Newsgroups: fr.test Subject: à propos Date: Tue, 25 Mar 2003 21:40:24 +0100 Message-ID: <MPG.18eadd26214c4a67989681@news.free.fr> Organization: La mienne X-Newsreader: MicroPlanet Gravity v2.50 Lines: 2 ignore raw 8 bits *** The group's charset is Western New (iso-8859-15) Sorry but what do you mean by locale ? All the locale -a output ?
Confirmed in CVS HEAD (0.13.92), using your post in fr.test. Thanks for that. I'll have a look at fixing that for 0.14.0. BTW, by locale I meant the output of just 'locale', or 'echo $LANG'. Not needed, now I can reproduce it here.
Created attachment 15297 [details] Sample message
gejj: gmime loses the 8bit characters while parsing the message: g_mime_get_header (msg, "Subject") returns 'propos' g_mime_get_subject (msg) returns 'à propos'. Confirmed in both Pan's version of gmime and gmime CVS HEAD. Thoughts?
Created attachment 15298 [details] Test program
fixed in both gmime branches. g_mime_header_[add,set] were trying to rfc2047 encode the header values (which it should not have been trying to do) and since those headers were invalid utf-8, the 8bit chars got stripped. fixed in both gmime cvs branches thanks for the bug report :-)
Synced in Pan CVS HEAD. Thanks fejj. http://cvs.gnome.org/bonsai/cvsview2.cgi? diff_mode=context&whitespace_mode=show&subdir=pan/gmime&command=DIFF_ FRAMESET&file=gmime-header.c&rev1=1.7&rev2=1.8&root=/cvs/gnome