[Bug 18040] quoted-printable not decoded correctly

bugzilla-daemon at bugzilla.ubuntu.com bugzilla-daemon at bugzilla.ubuntu.com
Fri Nov 18 22:41:29 UTC 2005


Please do not reply to this email.  You can add comments at
http://bugzilla.ubuntu.com/show_bug.cgi?id=18040
Ubuntu | evolution-data-server





------- Additional Comments From felix.egli at goldnet.ch  2005-11-18 22:41 UTC -------
The bug is in 1.5.2-0ubuntu1 and in evolution-data-server_1.4.1-0ubuntu3.

UTF-8 characters are in QUOTED-PRINTABLE encoded as =XX=XX where XX is a byte of
8 bits.

Zürich is encoded as Z=C3=BCrich

If we have a ü (=C3=BC) then:

                        else if (isxdigit(a) && isxdigit (b)) {

// a is 'C' and b is '3'

                                gunichar c;

// gunichar is wrong, because we have 0xC3 whats only 8 bits: char c;

                                a = tolower (a);
                                b = tolower (b);

                                c = (((a>='a'?a-'a'+10:a-'0')&0x0f) << 4)
                                        | ((b>='a'?b-'a'+10:b-'0')&0x0f);

                                g_string_append_unichar (str, c);

// we have to append only a 8 bit char not a 16 bit unichar. 
// -> the next 8 bits 0xBC are added at the next iteration of the while loop.

                        }


-- 
Configure bugmail: http://bugzilla.ubuntu.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the desktop-bugs mailing list