Closed Bug 125315 Opened 23 years ago Closed 23 years ago

JS write() including charset display characters inccorectly

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: chado_moz, Assigned: harishd)

References

Details

(Keywords: intl, regression, topembed+, Whiteboard: [adt1])

This problem appeared after bug 104227 was fixed. JS document.write() with meta statement including some charset display characters, depend on charset, incorrectly. Meta statment means like this: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Shift_JIS"> Japanese characters are displayed incorrectly, although English characters are displayed correctly. I have testcases: http://www2.wbs.ne.jp/%7Echado/work/js_write2/js_write2_sjis.html (Shift_JIS). http://www2.wbs.ne.jp/%7Echado/work/js_write2/js_write2_euc.html (EUC-JP). note: these testcases require Japanese language supported system with Japanese fonts. What should be seen are in it. In these testcases, Japanese characters are displayed correctly only when no charset was included. NC4.79-us for mac9 renders correctly in all cases. I've not tested other charsets since I don't have environment for those. Reproducible : Always. Builds I've tried: Mac9 2002-02-04-08-trunk, 2002-02-11-08-trunk. Win98 2002-02-04-11-trunk, 2002-02-12-10-trunk.
Keywords: intl
QA Contact: ruixu → ylong
QA Contact: ylong → teruko
it happen in my 2002012806 window build. I think we should take a look at it. It may represent some common JavaScript usage.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
The biggest problem is all the text write to the document AFTER the meta won't be display. 4.x work. Not sure about n6.0 or n6.1. teruko, please try it. nsbeta1+ harishd, is this related to your change several monthes ago?
Keywords: nsbeta14xp, nsbeta1+
Ftang: What change are you referring to?
Status: NEW → ASSIGNED
2001-09-28-16-trunk on win98 works fine. That build is the last one (that I have) before the bug 104227 has appeared. Also N6.1J, N6.2J and N6.2.1J (commercial) work fine so far. I've re-written testcase : http://www2.wbs.ne.jp/%7Echado/work/js_write2_2/js_write2_sjis.html and have confirmed that ISO-8859-1 works. Ftang: I'm worrying about that 2002012806 should be showing different behavior from what I'm seeing. same about bug 125317. sorry if not so.
I don't think I am the right owner for this. harishd/shanjian: can either of you take ownership of this?
looking at 104227, assiging to original owner-harishd
Assignee: yokoyama → harishd
Status: ASSIGNED → NEW
This is regression from NS 6.21.
Keywords: regression
Blocks: 122507
harishd, this bug only include unit test example. For real life example at the bug 122507 for real usage.
No longer blocks: 122507
harishd, I think I know what happen here. Hope you don't mind I move this bug back.
Assignee: harishd → ftang
patch will be post today
Status: NEW → ASSIGNED
see patch in 125317
reassign back to harishd, please fix it whenever you can.
Assignee: ftang → harishd
Status: ASSIGNED → NEW
This sounds like it might effect our embedding efforts international as well. Adding topembed. Pls correct ME, if I am incorrect with a hearty minus or clearing the keyword.
Keywords: topembed
heikki and harishd, could you put priority on this one ? I think this is a adt2 bug
Keywords: topembedtopembed+
FYI: I'm working on a solution that would target only document.writes.
This bug is blocking my adt1 bug
If so, then please mark the dependency and add adt1 to status whiteboard.
I ask hekki and harishd put adtxxx on status several times. Due to lack of action, I put [adt1] on the status board for now since it block adt1 bug 122057
Blocks: 122057
Whiteboard: [adt1]
I think you meant bug 122507.
Blocks: 122507
No longer blocks: 122057
the patch v1.5 in 125317 fix this problem .
Frank: So can we mark this bug a dupe of bug 125317?
Closing the bug based on ftang's comment ( #20 )
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified as fixed in 4-22 trunk build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.