Closed Bug 399257 Opened 14 years ago Closed 14 years ago

Mac charsets: save page converts line-breaks in source-code to 


Categories

(Core :: Internationalization, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: phiw2, Assigned: smontagu)

References

()

Details

Attachments

(1 file)

STR

1. load page in URL (displays incorrectly, bug 398905)
2. Save page to disc
3. Open in text editor

Actual result: All line-breaks in the source code are converted to 

e.g. <tr class="testcase">&#10;    <td>0x21</td>
Either a bug in the serializer or (more likely?) in the i18n converters that it uses, I'd think.
Assignee: nobody → smontagu
Component: Layout: Fonts and Text → Internationalization
QA Contact: layout.fonts-and-text → i18n
er, s/converters/encoders/
Attached patch PatchSplinter Review
This is just adding to nsUnicodeEncodeHelper what nsUnicodeDecodeHelper already does: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/intl/uconv/util/nsUnicodeDecodeHelper.cpp&mark=81-83#62
Attachment #285122 - Flags: review?(jshin1987)
Also affected are MacCroatian, MacCyrillic, MacGreek, MacIcelandic, MacRoman, MacRomanian, MacTurkish, and MacUkrainian.
Status: NEW → ASSIGNED
Summary: MacGurmukhi: save page converts line-breaks in source-code to &#10; → Mac charsets: save page converts line-breaks in source-code to &#10;
Attachment #285122 - Flags: review?(jshin1987) → review+
Checked in to trunk, with unit test.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
verified with
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1a1pre) Gecko/2008060902 Minefield/3.1a1pre
Status: RESOLVED → VERIFIED
Depends on: 457886
You need to log in before you can comment on or make changes to this bug.