Closed Bug 214381 Opened 21 years ago Closed 21 years ago

Incorrect characters in prettyprint.dtd

Categories

(Core :: XML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vberon, Assigned: hjtoi-bugzilla)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.4) Gecko/20030630
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.4) Gecko/20030630

There are 3 characters which made their way to the beginning of prettyprint.dtd,
before the license block, which should never be there and will probably cause
problems when Mozilla will try to parse the file.
The three characters in question are an ï, an » and an ¿, just before the <!--
of the license block.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
This patch fixes the problem.
Comment on attachment 128825 [details] [diff] [review]
Patch to remove incorrect characters in prettyprint.dtd

Requesting review from hjtoi-bugzilla.
Attachment #128825 - Flags: review?(hjtoi-bugzilla)
Those bytes are a UTF-8 BOM, presumably added by sicking's text editor.  I sort
of doubt that they will cause any problems, and may be needed for the UTF-8 text
(the name in the comment) to not cause issues...

But then again, I could be wrong -- intl is not my strong suit.
I think you should take them out. The XML parser will assume UTF-8/16 if there
is no XML declaration, so if there are characters in UTF-8 it should be fine.

Confirming, and will review in a bit.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #128825 - Flags: superreview+
Attachment #128825 - Flags: review?(smontagu)
Attachment #128825 - Flags: review?(hjtoi-bugzilla)
This bug effectively prevents localization, as our MozillaTranslator treats that
DTD as invalid because of those charaters and leaves the translated file empty,
so that prettyprint doesn't work at all in localized builds.

requesting blocking1.5b because of that.
Flags: blocking1.5b?
Blocks: 189855
Comment on attachment 128825 [details] [diff] [review]
Patch to remove incorrect characters in prettyprint.dtd

r=smontagu
Attachment #128825 - Flags: review?(smontagu) → review+
Requesting integration of attachment #128825 [details] [diff] [review] on head by hjtoi-bugzilla.
I opened prettyprint.dtd in 2 different Unicode editors: UniPad and and UniRed.
UniPad shows in the Character Information Toolbar that those invalid characers
are  of the Arabic Presentation Forms-B subset. But UniPad doesn't give any
other information where you could see that there are invalid characters.
UniRed shows the invalid characters and displays that they were of cp-1250.
But in fact, those characters are not allowed to be there.
is this the reason that I do not get a tree view for xml files anymore?

Since I tried a nightly yesterday I do not get prettyprint XML view, niether in
Mozilla nor in Firebird :((
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Flags: blocking1.5b?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: