2010-12-09 Jasmin Lapalme <jlapalme@druide.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Dec 2010 04:06:02 +0000 (04:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Dec 2010 04:06:02 +0000 (04:06 +0000)
commit1c340fb743db2f06b6abf5f47e4f58e122bcadd9
tree925ebb7bb44fb14decf5e5055a39f7ecd61c294c
parent8012e24e296fffff65804f6ad538b7be2a1a8af5
2010-12-09  Jasmin Lapalme  <jlapalme@druide.com>

        Reviewed by Alexey Proskuryakov.

        Test for a faulty conversion from UTF-8 to UTF-16 in WebCore during an XSLT transformation.
        https://bugs.webkit.org/show_bug.cgi?id=50708

        * fast/xsl/utf8-chunks-expected.txt: Added.
        * fast/xsl/utf8-chunks.xml: Added.
        * fast/xsl/utf8-chunks.xsl: Added.
2010-12-09  Jasmin Lapalme  <jlapalme@druide.com>

        Reviewed by Alexey Proskuryakov.

        Fix a faulty conversion from UTF-8 to UTF-16 in WebCore during an XSLT transformation.
        https://bugs.webkit.org/show_bug.cgi?id=50708

        Test: fast/xsl/utf8-chunks.xml

        * xml/XSLTProcessorLibxslt.cpp:
        (WebCore::writeToVector): now converts and returns the correct byte count when the end of the chunk is in the middle of a multibyte UTF-8 character.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xsl/utf8-chunks-expected.txt [new file with mode: 0644]
LayoutTests/fast/xsl/utf8-chunks.xml [new file with mode: 0644]
LayoutTests/fast/xsl/utf8-chunks.xsl [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XSLTProcessorLibxslt.cpp