Closed Bug 71541 Opened 24 years ago Closed 23 years ago

Should use default charset for UNKNOWN-8BIT

Categories

(MailNews Core :: Internationalization, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgmyers, Assigned: jgmyers)

References

(Blocks 1 open bug)

Details

(Keywords: intl)

Attachments

(1 file, 1 obsolete file)

RFC 1428 defines the charset "UNKNOWN-8BIT" to refer to data for which the encoder does not know the charset. The MIME encoded-word decoder should use the default charset for decoding this data. Currently the decoder passes "unknown-8bit" down to the charset converter, which in turn treats the unrecognized charset as iso-8859-1.
Attached patch Proposed fix (obsolete) — Splinter Review
The onyl exception to this is that when an auto-detection module is tunred ON, that should take precedence over the view default charset. So please extend the applicability of auto-detection to cases of charset=unknown-8bit. Should we file a separate bug for this?
Autodetection doesn't apply to headers. But we should file a separate bug or extend this bug to address message bodies. Changing the summary to extend this bug to message bodies. I will address message bodies in a followup patch.
Summary: MIME encoded-word decoder should use default charset for UNKNOWN-8BIT → Should use default charset for UNKNOWN-8BIT
Adding intl keyword, and jenm to cc: list.
Keywords: intl
I think at the moment Messageview uses specified Folder encoding to display headers with no MIME set. John, please have a look at bug 77903.
Bug 77943 is orthogonal to this bug. This bug refers to headers which are encoded in MIME encoded-words, but have a charset label of "UNKNOWN-8BIT". Could I please have a review? This bug has been blocked waiting for review for a year and a half.
Blocks: 167257
Attachment #27342 - Attachment is obsolete: true
QA contact to marina. Thanks.
QA Contact: ji → marina
Comment on attachment 27343 [details] [diff] [review] Corrected proposed fix r=nhotta
Attachment #27343 - Flags: review+
Comment on attachment 27343 [details] [diff] [review] Corrected proposed fix sr=blizzard
Attachment #27343 - Flags: superreview+
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: