Closed
Bug 230660
Opened 21 years ago
Closed 21 years ago
[FIX] XML prettyprint does not work on UTF16-LE encoded page
Categories
(Core :: XML, defect, P2)
Core
XML
Tracking
()
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: sekundes, Assigned: bzbarsky)
References
()
Details
Attachments
(1 file)
7.36 KB,
patch
|
sicking
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7a) Gecko/20040108
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7a) Gecko/20040108
Summary says it all
Reproducible: Always
Steps to Reproduce:
Comment 1•21 years ago
|
||
Tried to create a testcase, but every single editor on my system choked on the
file. Even Vim. Maybe for some odd-ball reason Mozilla has a problem with the
raw length of the line -- 154,000+ characters.
Maybe someone with the horsepower on their system to do it could break the file
up over multiple lines and see how it works.
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208
![]() |
Assignee | |
Comment 2•21 years ago
|
||
To sicking. The problem is that the page is UTF-16 (not ascii-compatible,
therefore) and his prettyprinter CSS doesn't have @charset rules. So we try to
decode it as UTF-16 and that fails badly.
Assignee: general → bugmail
Status: UNCONFIRMED → NEW
Component: Browser-General → XML
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: general → ian
Hardware: PC → All
![]() |
Assignee | |
Comment 3•21 years ago
|
||
The CSSLoader stuff is a minor improvement to how we do charsets a tad, plus
converting logging to use PR_LOG instead of printf.
![]() |
Assignee | |
Comment 4•21 years ago
|
||
Comment on attachment 138852 [details] [diff] [review]
Fixes the problem
I call upon thee, CSSLoader not-fearers! Review! ;)
Attachment #138852 -
Flags: superreview?(peterv)
Attachment #138852 -
Flags: review?(bugmail)
Comment on attachment 138852 [details] [diff] [review]
Fixes the problem
* sicking fights off CSSLoader deamons with a keyboard
Attachment #138852 -
Flags: review?(bugmail) → review+
![]() |
Assignee | |
Comment 6•21 years ago
|
||
Taking.
Assignee: bugmail → bz-vacation
Priority: -- → P2
Summary: pretty print XML does not work on specific page → [FIX]pretty print XML does not work on specific page
Target Milestone: --- → mozilla1.7alpha
Updated•21 years ago
|
Attachment #138852 -
Flags: superreview?(peterv) → superreview+
Comment 7•21 years ago
|
||
Would it make sense to use "UTF-8" instead of "utf-8" in the @charset rule?
![]() |
Assignee | |
Comment 8•21 years ago
|
||
Doesn't matter, really. I could change that, sure.
*** Bug 230811 has been marked as a duplicate of this bug. ***
Summary: [FIX]pretty print XML does not work on specific page → [FIX] XML prettyprint does not work on UTF16-LE encoded page
![]() |
Assignee | |
Comment 10•21 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Blocks: 230785
You need to log in
before you can comment on or make changes to this bug.
Description
•