Closed Bug 83092 Opened 23 years ago Closed 21 years ago

Date.toLocaleString() should return a Unicode string

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 153586
Future

People

(Reporter: mozilla-bugs, Assigned: khanson)

References

Details

(Keywords: intl)

Attachments

(1 file)

If I create a localized string using Date.toLocaleString and then document.write the result, it is always displays in what looks like an iso-8859-1 font, no matter what. The right behaviour would be to use a font compatible with my local settings (or at least the same font as for the rest of the document).
P.S. I have the following locale settings in my environment: LANG=ru_RU.KOI8-R LC_NUMERIC=C P.P.S. I am currently using build id 2001052510 on RedHat Linux 7.1, but I had the same problem with other versions of Mozilla on other versions of RedHat and with NN4 as well.
Date.toLocaleString may not returning unicode string or a generic document.write issue. Does document.write(\uxxxx) works?
Keywords: intl
document.write("\uxxxx") does the right thing, so it's the toLocaleString that needs fixing. Updating the summary.
Summary: document.write of non-ASCII string never displayed with right font → Date.toLocaleString should return a unicode string
Change component JavaScript and reassign to rogerl.
Assignee: nhotta → rogerl
Component: Internationalization → Javascript Engine
latering
Assignee: rogerl → khanson
Target Milestone: --- → mozilla0.9.2
pushing out. 0.9.2 is done. (querying for this string will get you the list of the 0.9.2 bugs I moved to 0.9.3)
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Doesn't look like this is getting fixed before the freeze tomorrow night. Pushing out a milestone. Please correct if I'm mistaken.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
QA Contact: andreasb → teruko
*** Bug 94393 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
retargeting for future.
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Really putting this bug into the future.
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.7 → Future
This is still a problem in Mozilla 0.9.7
Keywords: mozilla1.0
dup of bug 153586?
cc'ing Mike: do you think these two bugs are duplicates? Note the other one was filed on Windows; this one on Linux -
Summary: Date.toLocaleString should return a unicode string → Date.toLocaleString() should return a Unicode string
This works for me in BuildID 2003102323, probably because it is indeed a dup of bug 153586 that was recently fixed. *** This bug has been marked as a duplicate of 153586 ***
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Aleksey: thanks for reporting back - marking Verified Duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: