GNOME Bugzilla – Bug 87065
Some encoded headers are not decoded correctly
Last modified: 2006-06-18 04:55:33 UTC
Some encoded Subject-headers are not decoded correctly. For example, (case 1) the Subject is decoded fine in the thread pane, but not in the message pane. Or, (case 2) the Subject is not decoded in the thread pane nor the message pane. On the other hand, some messages are decoded just fine. I will add a screenshot where red color marks case #1 and green color case #2. To reproduce the problem - I think you simply have to find some encoded messages in the newsgroups. The ng in the screenshot is ee.auto. Pan is the CVS version checked out some 10 minutes ago.
Created attachment 9568 [details] screenshot describing the problem
Other headers (eg From:) also seem to be problematic. I have yet to see undecoded From header in the threads pane, but I see some in the message pane.
I have observed the same problem on several other ocasions. Details to one particular case: Message ID: <vbd3jus53jb8p7kbqtvfqck4th6tjsb88f@4ax.com> in de.rec.luftfahrt A screenshot is at http://www.sweetapple.de/priv/pan.jpg I can read the message but when pressing 'H' to show the header, Pan crashes. Backtrace: http://www.sweetapple.de/priv/pan-backtrace.bz2 Runlog: http://www.sweetapple.de/priv/pan-runlog.bz2 Lars
Toivo: in the future, please add these as attachments so that the bug tracker can keep them for posterity. Chris: looks like YAI18N bug, so reassigning to you. Sometime you need to get me in IRC and explain this stuff to me, so that I can do some of it, before your head explodes. :) The germane part of the backtrace: ** (pan:13328): WARNING **: Invalid UTF-8 sequence encountered ** (pan:13328): WARNING **: Invalid UTF-8 sequence encountered (pan:13328): pan-CRITICAL **: file gui-headers.c: line 71 (find_breakpoint): assertion `is_nonempty_string(str)' failed (pan:13328): pan-CRITICAL **: file gui-headers.c: line 71 (find_breakpoint): assertion `is_nonempty_string(str)' failed (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault.
+ Trace 25059
Thread 1024 (LWP 13328)
Same thing here - with pan 0.12.91. I entered tést as a test message. It shows up correctly in the header pane, but in the message pane i get some =iso= string stuff.
Prioritizing remaining 0.13.0 tasks
Chris: is this fixed by pan_header_to_utf8()?
For the articlelist: yes. For the article: no, because it doesn't use pan_header_to_utf8 (yet). The reason for not merging that from 0.12.1 to HEAD is in http://mail.freesoftware.fsf.org/pipermail/pan-devel/2002-July/000115.html
Fixed for the article in gui-headers, as suggested in the pan-devel letter Chris referenced. Fejj says this will be easier in Pan because Pan knows the fallback charset, etc. http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=gui-headers.h&rev1=1.9&rev2=1.10&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=gui-headers.c&rev1=1.47&rev2=1.48&root=/cvs/gnome
*** Bug 88851 has been marked as a duplicate of this bug. ***