Created attachment 74162 [details] This page doesn't show me the date correctly on my Simplified Chinese Windows XP
To see the problem, please download the file into local, and open it from navigator.
I can reproduce it on linux 7.2 with JA locale, but WinXP-CN works fine.
Assignee: yokoyama → rogerl
Priority: -- → P3
QA Contact: teruko → pschwartau
The string |document.lastModified| is a DOM production, reassigning. If this is somehow a problem in JS Engine string handling, please reassign back; thanks -
Assignee: rogerl → jst
QA Contact: pschwartau → desale
ftang: The relevant code is in nsHTMLDocument::StartDocumentLoad(). You'll see lots of string fu and conversion going on in there.
Mass-reassigning bugs to email@example.com
Assignee: jst → dom_bugs
The code has moved. Now there is the code in nsDocument::RetrieveRelevantHeaders that gets the HTTP header and failing that uses PR_FormatTime to format the file modification date and there is code in nsDocument::GetLastModified that copies the date to UTF-16 (treating it as ASCII). There are two issues here: 1) What format can the HTTP header come in? Will it always be ASCII? 2) What does PR_FormatTime output? It looks like #2 is "locale-specific" -- would it need to be converted via NativeToUnicode? I'd say that mLastModified should be UTF-8 and that RetrieveRelevantHeaders should handle conversion to that encoding as needed....
this is a dupe of 224703. i'm not sure which one to make a dupe of which. the latter has a patch.
You dup to the bug that's closer to being fixed. ;) *** This bug has been marked as a duplicate of 224703 ***
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.