Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Jun 2006 16:15:31 +0000 (16:15 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Jun 2006 16:15:31 +0000 (16:15 +0000)
commitf1124996391c42751ed255596e9efa8151c2b9f9
treeff74e54b4d08e3cf6d0dbe97aa36b979759604dc
parent40ac8b49f09869e9c584fcebc3f328f7f7bc3c97
    Reviewed by Darin.

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=8972
        REGRESSION: invalid UTF-8 sequences are not displayed

        Test: LayoutTests/fast/encoding/invalid-UTF-8.html

        * dom/xml_tokenizer.cpp:
        (WebCore::getXHTMLEntity): Properly null-terminate the result. This didn't matter
        before, because the garbage at the end was guaranteed to be invalid UTF-8, and was
        omitted in appendOmittingUnwanted();

        * platform/StreamingTextDecoder.cpp:
        (WebCore::StreamingTextDecoder::appendOmittingBOM): Only omit BOM characters.
        Renamed back from appendOmittingUnwanted();

        (WebCore::StreamingTextDecoder::convertUsingICU):
        * platform/StreamingTextDecoder.h:
        Update for the above function renaming.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/encoding/invalid-UTF-8-expected.checksum
LayoutTests/fast/encoding/invalid-UTF-8-expected.png
LayoutTests/fast/encoding/invalid-UTF-8-expected.txt
LayoutTests/fast/encoding/invalid-UTF-8.html
WebCore/ChangeLog
WebCore/dom/xml_tokenizer.cpp
WebCore/platform/StreamingTextDecoder.cpp
WebCore/platform/StreamingTextDecoder.h