Closed
Bug 134053
Opened 24 years ago
Closed 23 years ago
utf8 conversion problem in nsString.h
Categories
(MailNews Core :: Internationalization, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ji, Assigned: shanjian)
Details
(Keywords: intl)
Attachments
(2 files, 2 obsolete files)
2.03 KB,
text/plain
|
Details | |
1.90 KB,
patch
|
tetsuroy
:
review+
shanjian
:
superreview+
|
Details | Diff | Splinter Review |
With the current build, surrogate can be displayed correctly on Navigator
window, but on mail window, it's displayed as a pair of question mark and square
in the subject and displayed as two question marks in mail body.
Two testing mails to follow.
![]() |
||
Updated•24 years ago
|
Status: NEW → ASSIGNED
![]() |
||
Comment 2•23 years ago
|
||
Shanjian, please help looking at this.
Assignee: nhotta → shanjian
Status: ASSIGNED → NEW
![]() |
Assignee | |
Comment 3•23 years ago
|
||
This bug expose 2 problems. One the conversion to utf-8, which is filed as bug
141621. After I applied that patch, imap folder could not be selected any more.
Need more investigation.
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 4•23 years ago
|
||
The 2nd problem is also a UTF8 conversion problem, but exist in nsString2.h.
patch will follow.
Summary: Surrogate chars are not displayed correctly in mail subject and body → utf8 conversion problem in nsString.h
![]() |
Assignee | |
Comment 5•23 years ago
|
||
![]() |
Assignee | |
Comment 6•23 years ago
|
||
![]() |
Assignee | |
Updated•23 years ago
|
Attachment #82257 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 7•23 years ago
|
||
roy, could you r=?
scott, could you sr?
![]() |
||
Comment 8•23 years ago
|
||
Comment on attachment 99708 [details] [diff] [review]
patch with format change.
sr=scc, but please add a comment pointing the reader to the part of the spec
that describes this math, so that one could verify it if they needed to
Attachment #99708 -
Flags: superreview+
![]() |
||
Comment 9•23 years ago
|
||
shanjian: Looks good.
Few nits
can you define and replace the hex values?
+ #define PLANE1_BASE 0x00010000
+ #define UCS2_REPLACEMENT_CHAR 0xfffd
......
+ *mBuffer++ = UCS2_REPLACEMENT_CHAR;
I am not familiar with 'u'. Does it compile on other compilers?
ucs4 -= 0x10000u;
![]() |
Assignee | |
Comment 10•23 years ago
|
||
Attachment #99708 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 11•23 years ago
|
||
roy, I modified the patch as you required. u is a standard C feature and it
should not be a problem. Please mark r=.
![]() |
Assignee | |
Updated•23 years ago
|
Attachment #99748 -
Flags: superreview+
![]() |
||
Comment 12•23 years ago
|
||
Comment on attachment 99748 [details] [diff] [review]
patch take roy suggestion
/r=yokoyama
thanks, shanjian
Attachment #99748 -
Flags: review+
![]() |
Assignee | |
Comment 13•23 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 14•23 years ago
|
||
This fix introduced a buffer overflow. Please see the fix attached to bug 172700.
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•