Make MIME utf-8 helper routines surrogate-aware

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
16 years ago
5 years ago

People

(Reporter: smontagu, Assigned: smontagu)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Assignee)

Description

16 years ago
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.
(Assignee)

Comment 1

16 years ago
Taking the bug.
Assignee: ducarroz → smontagu
Product: MailNews → Core

Comment 2

13 years ago
The situation described in comment 0 is still true.  Is it important?

Updated

11 years ago
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
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.