Closed
Bug 703503
Opened 13 years ago
Closed 13 years ago
Charset detection function should be moved into mailnews/base/util/
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 11.0
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(3 files, 1 obsolete file)
10.03 KB,
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
4.43 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
1.95 KB,
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
The function currently stays in mailnews/compose/src/nsMsgAttachmentHandler.cpp, but it is also needed for fixing bug 145293.
Assignee | ||
Comment 1•13 years ago
|
||
This new function is combined the original function in nsMsgAttachmentHandler.cpp and the function mozilla/dom/workers/FileReaderSyncPrivate.cpp.
Assignee | ||
Comment 2•13 years ago
|
||
Detection of UTF-16 and ShiftJis files.
Attachment #575391 -
Flags: review?(mconley)
Comment 3•13 years ago
|
||
Comment on attachment 575391 [details] [diff] [review] Additional tests Review of attachment 575391 [details] [diff] [review]: ----------------------------------------------------------------- hiro: Looks pretty good! Just two things I noticed - see below. Thanks, -Mike ::: mailnews/compose/test/unit/test_detectAttachmentCharset.js @@ +79,3 @@ > { > var fileData = loadFileToString(gDraftFolder.filePath); > + dump(fileData + "\n"); We probably don't want this dump statement. @@ +89,5 @@ > + function createMessage1() { createMessage("data/test-UTF-8.txt"); }, > + function checkAttachment1() { checkAttachment("UTF-8"); }, > + > + function createMessage2() { createMessage("data/test-UTF-16.txt"); }, > + function checkAttachment2() { checkAttachment("UTF-16"); }, The file "test-UTF-16.txt" doesn't appear to be included in this, or the accompanying patch. Did you forget it?
Attachment #575391 -
Flags: review?(mconley) → review-
Assignee | ||
Comment 4•13 years ago
|
||
Remove a dump pointed out by mconley.
Thanks reviewing, Mike.
> The file "test-UTF-16.txt" doesn't appear to be included in this, or the
> accompanying patch. Did you forget it?
The file is surely including in the attachment file. Splinter can not handle the file in UTF-16 or the attachment including several encodings. Anyway, you can see it in "Details" link.
Attachment #575391 -
Attachment is obsolete: true
Attachment #576076 -
Flags: review?(mconley)
Comment 5•13 years ago
|
||
Comment on attachment 576076 [details] [diff] [review] Revised test Yep, thanks - I see test-UTF-16.txt in the diff. Good work! r=me.
Attachment #576076 -
Flags: review?(mconley) → review+
Comment 6•13 years ago
|
||
Comment on attachment 575390 [details] [diff] [review] Proposed fix thx for the patch and test
Attachment #575390 -
Flags: review?(dbienvenu) → review+
Updated•13 years ago
|
Keywords: checkin-needed
Comment 7•13 years ago
|
||
http://hg.mozilla.org/comm-central/rev/aed166a284ff http://hg.mozilla.org/comm-central/rev/60b1179ae6b9
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 11.0
Comment 8•13 years ago
|
||
Attachment #578434 -
Flags: review?(dbienvenu)
Updated•13 years ago
|
Attachment #578434 -
Flags: review?(dbienvenu) → review+
Comment 9•13 years ago
|
||
Comment on attachment 578434 [details] [diff] [review] --with-libxul-sdk fix Pushed changeset f8fff89bfabc to comm-central.
You need to log in
before you can comment on or make changes to this bug.
Description
•