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 244991 - cannot send mail in GB-2312
cannot send mail in GB-2312
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal major
: ---
Assigned To: Jeffrey Stedfast
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2003-06-17 15:28 UTC by Wesley Tanaka
Modified: 2003-06-18 18:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
44991.patch (3.01 KB, patch)
2003-06-17 18:57 UTC, Jeffrey Stedfast
none Details | Review

Description Wesley Tanaka 2003-06-17 15:28:14 UTC
I could not tell if this was a duplicate of bug 224026 but, after reading
said bug, it seemed different.  I figured it was easier if I just filed
another bug report, since marking a bug duplicate is a simple operation.

Description of Problem:
Outgoing email from evolution appears to always be encoded as UTF-8

Steps to reproduce the problem:
1. Run evolution, in simplified chinese locale in RH9
   (I'm using miniChinput-0.0.3-37 for my XIM, but I believe that shouldn't
matter)
2. using the menu, open a composer window for a new email message
3. address the mail to some other email account (say your foobar@yahoo.com
account)
4. type a subject in (I used english, just in case that affected
evolution's behavior)
5. Select "GB2312" as the character encoding
6. type an email body in Chinese
7. Send

Actual Results:
Open the email in yahoo mail, and select "GB2312" as the character encoding
-- the characters are rendered incorrectly.  However, if you select the
"UTF-8" encoding, the characters are rendered properly.

Expected Results:
Vice versa -- in other words, the characters should render correctly with
GB2312 selected in the browser and incorrectly with UTF-8 selected.

How often does this happen? 
Every Time.
Comment 1 Wesley Tanaka 2003-06-17 15:30:30 UTC
Currently, to work around this bug, I am not using evolution to send
mail but rather yahoo mail.
Comment 2 Jeffrey Stedfast 2003-06-17 16:23:48 UTC
this means that your typed text does not fit inside GB2312.
Comment 3 Wesley Tanaka 2003-06-17 17:26:57 UTC
Jeff, let me make my step #6 more precise, as I believe the clarified
version will provide a counterexample to your theory.

6. type the following email body:
ÄãºÃÂð

(I hope that bugzilla stores that as GB2312.  I will attach the data
in a file if it does not)

These characters happen to all be in the GB2312 character set.  Their
hex values are as follows: 0xc4e3, 0xbac3, 0xc2f0

> echo -n 'ÄãºÃÂð' | od -t x1
0000000 c4 e3 ba c3 c2 f0

I can look up their GB2312 table numbers if you think that would be
useful.

This is actually the message body that I typed, so the rest of the bug
report remains the same under this clarification.
Comment 4 Wesley Tanaka 2003-06-17 17:28:25 UTC
Luckily bugzilla stored the data verbatim.  If you switch your browser
to GB2312 and have the correct fonts installed, you should see the
characters.
Comment 5 Jeffrey Stedfast 2003-06-17 18:22:48 UTC
aha, seems Linux libiconv does not support the charset alias GB-2312,
it wants GB2312 instead and so it is failing to convert UTF-8 to
GB2312, thus falling back to UTF-8
Comment 6 Jeffrey Stedfast 2003-06-17 18:54:06 UTC
n/m, even after I fixed it to use the code that uses the appropriate
charset alias, I still get:

(evolution-1.4:16110): camel-WARNING **: Cannot convert from 'gb2312'
to 'UTF-8': Invalid or incomplete multibyte or wide character

sorry, but the text you gave me will not fit into GB2312 according to
the system libiconv.

I will commit my other fix tho...
Comment 7 Jeffrey Stedfast 2003-06-17 18:56:46 UTC
wait, n/m, it works afterall. silly me.
Comment 8 Jeffrey Stedfast 2003-06-17 18:57:13 UTC
Created attachment 42544 [details] [review]
44991.patch
Comment 9 Jeffrey Stedfast 2003-06-18 18:04:03 UTC
patch applied to CVS