Closed Bug 201366 Opened 21 years ago Closed 10 years ago

Make MIME utf-8 helper routines surrogate-aware

Categories

(MailNews Core :: MIME, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: smontagu, Assigned: smontagu)

References

()

Details

From utf8_nextchar() in mailnews/mime/src/comi18n.cpp:

// RFC 2279 defines more than 3 bytes sequences (0xF0, 0xF8, 0xFC),
// but I think we won't encounter those cases as long as we're supporting UCS-2
and no surrogate.

This assumption is no longer true, and we should add support for 4 byte UTF-8.
Taking the bug.
Assignee: ducarroz → smontagu
Product: MailNews → Core
The situation described in comment 0 is still true.  Is it important?
QA Contact: stephend → mime
Product: Core → MailNews Core
This code will be deleted after header parsing and 2047 support move to using JSMime.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.