After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 109004 - 8 bits characters in subject some times are missing
8 bits characters in subject some times are missing
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
pre-0.14.0 betas
Other Linux
: Normal normal
: 0.14.0
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2003-03-23 12:25 UTC by Patrick Lamaiziere
Modified: 2006-06-18 05:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample message (650 bytes, text/plain)
2003-03-29 13:11 UTC, Christophe Lambin
Details
Test program (969 bytes, text/plain)
2003-03-29 13:24 UTC, Christophe Lambin
Details

Description Patrick Lamaiziere 2003-03-23 12:25:31 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.
Comment 1 Christophe Lambin 2003-03-24 14:13:45 UTC
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.
Comment 2 Patrick Lamaiziere 2003-03-25 21:25:29 UTC
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 ?
Comment 3 Christophe Lambin 2003-03-25 22:40:37 UTC
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.
Comment 4 Christophe Lambin 2003-03-29 13:11:31 UTC
Created attachment 15297 [details]
Sample message
Comment 5 Christophe Lambin 2003-03-29 13:22:34 UTC
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?
Comment 6 Christophe Lambin 2003-03-29 13:24:30 UTC
Created attachment 15298 [details]
Test program
Comment 7 Jeffrey Stedfast 2003-03-30 06:06:53 UTC
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 :-)
Comment 8 Christophe Lambin 2003-03-30 11:16:37 UTC
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