issues@javamail.java.net

[Bug 4065] Wrong representation of CR/LF are appended to the attachment

From: <bugzilla-daemon_at_kenai.com>
Date: Tue, 15 Feb 2011 19:19:49 +0000 (GMT)

http://kenai.com/bugzilla/show_bug.cgi?id=4065


Bill Shannon <shannon_at_kenai.com> changed:

           What |Removed |Added
----------------------------------------------------------------------------
             Status|NEW |RESOLVED
         Resolution| |FIXED




--- Comment #2 from Bill Shannon <shannon_at_kenai.com> 2011-02-15 19:19:47 ---
The code that chooses the encoding assumed that all charsets were
compatible with ASCII and in particular that the Unicode \r\n
characters were always represented as the corresponding ASCII
characters. That's not true for some charsets, in particular the
16-bit Unicode charsets.

The code now determines whether the particular charset is compatible
with ASCII and if not chooses base64 encoding (instead of
quoted-printable) if the text contains any non-ASCII characters
(which it always will for the 16-bit charsets).

I've fixed this for 1.4.5.

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.