<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>40661</bug_id>
          
          <creation_ts>2010-06-16 02:06:04 -0700</creation_ts>
          <short_desc>[Qt] fast/encoding/japanese-encoding-mix.html fails on Qt after enabling HTML5 Lexer</short_desc>
          <delta_ts>2011-10-20 03:32:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ossy</cc>
    
    <cc>zarvai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>238742</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-16 02:06:04 -0700</bug_when>
    <thetext>fast/encoding/japanese-encoding-mix.html fails on Qt after enabling HTML5 Lexer

I suspect this has to do with Qt&apos;s custom encoders.  It looks like the comment isn&apos;t properly getting closed, likely because Qt&apos;s decoder isn&apos;t recognizing the &quot;--&quot; correctly.   Trac also fails to display the &quot;--&quot; before the &gt;, but vi, and other decoders seem to see it fine:
http://trac.webkit.org/browser/trunk/LayoutTests/fast/encoding/japanese-encoding-mix.html

If the decoder isn&apos;t passing -- correctly to the HTML5DocumentParser then of course the unclosed comment would eat the rest of the document.  Will need a Qt person to investigate.

--- /home/webkitbuildbot/slaves/release32bit/buildslave/qt-linux-release/build/layout-test-results/fast/encoding/japanese-encoding-mix-expected.txt	2010-06-16 01:31:13.436391978 -0700
+++ /home/webkitbuildbot/slaves/release32bit/buildslave/qt-linux-release/build/layout-test-results/fast/encoding/japanese-encoding-mix-actual.txt	2010-06-16 01:31:13.436391978 -0700
@@ -1,5 +1,12 @@
-Some text here is encoded as EUC-JP, and some (in comment) as Shift_JIS. Since there is an explicit encoding declaration, auto-detection shouldn&apos;t change the encoding.
-
-ãƒ‹ãƒƒãƒãƒ³ãƒ†ãƒ¬ãƒ“
-
-Should be EUC-JP: EUC-JP
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 717x40
+          text run at (0,0) width 717: &quot;Some text here is encoded as EUC-JP, and some (in comment) as Shift_JIS. Since there is an explicit&quot;
+          text run at (0,20) width 483: &quot;encoding declaration, auto-detection shouldn&apos;t change the encoding.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 28x20
+          text run at (0,0) width 28: &quot;\x{30CB}\x{30C3}\x{30DD}\x{30F3}\x{30C6}\x{30EC}\x{30D3}&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238744</commentid>
    <comment_count>1</comment_count>
      <attachid>58863</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-16 02:09:44 -0700</bug_when>
    <thetext>Created attachment 58863
Skipping for now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238747</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-16 02:12:22 -0700</bug_when>
    <thetext>Committed r61246: &lt;http://trac.webkit.org/changeset/61246&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238987</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-16 11:28:53 -0700</bug_when>
    <thetext>Bug 40725 is the same failure except for Tiger (which also has different decoders).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487452</commentid>
    <comment_count>4</comment_count>
    <who name="Zoltan Arvai">zarvai</who>
    <bug_when>2011-10-20 03:30:07 -0700</bug_when>
    <thetext>This test is no longer on skipped list.
It passes:
http://build.webkit.org/builders/Qt%20Linux%20Release/builds/38749/steps/layout-test/logs/stdio</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58863</attachid>
            <date>2010-06-16 02:09:44 -0700</date>
            <delta_ts>2010-06-16 02:11:30 -0700</delta_ts>
            <desc>Skipping for now</desc>
            <filename>bug-40661-20100616020942.patch</filename>
            <type>text/plain</type>
            <size>1763</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCAwOGE0NTBlNDIwNmQ5MDM3NWZjNjQ4OTQ4YTU4N2YzNWZkMjQ2MWExLi5iMTk1YzZh
YmUyNGNiOTk2OTI3MTJlYTI4NjQ2OWZmYjZiZjUyY2JmIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0
cy9DaGFuZ2VMb2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDUgKzEsMjAgQEAK
IDIwMTAtMDYtMTYgIEVyaWMgU2VpZGVsICA8ZXJpY0B3ZWJraXQub3JnPgogCisgICAgICAgIFVu
cmV2aWV3ZWQuICBEaXNhYmxpbmcgYSB0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NmJjNWM2YS4uNTRiYjA5YWRjNjZiYTBhZWRlYjY0
ZGI3ZmY4YTAwZTNmOGMxMTJkOCAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvcGxhdGZvcm0vcXQv
U2tpcHBlZAorKysgYi9MYXlvdXRUZXN0cy9wbGF0Zm9ybS9xdC9Ta2lwcGVkCkBAIC01NDEyLDUg
KzU0MTIsOSBAQCBzdmcvVzNDLVNWRy0xLjEvZmlsdGVycy1saWdodC0wNC1mLnN2ZwogIyA9PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PSAjCiAjIG5ldyBza2lwcGVkIHRlc3RzIHlldCB0byBiZSBzb3J0ZWQK
ICMgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT0gIwotZmFzdC9kb20vR2VvbG9jYXRpb24vY2FsbGJhY2st
dG8tcmVtb3RlLWNvbnRleHQyLmh0bWwgCitmYXN0L2RvbS9HZW9sb2NhdGlvbi9jYWxsYmFjay10
by1yZW1vdGUtY29udGV4dDIuaHRtbAorCisjIEZhaWxpbmcgYWZ0ZXIgZW5hYmxpbmcgSFRNTDUg
cGFyc2VyIGluIHI2MTIzNAorIyBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/
aWQ9NDA2NjEKK2Zhc3QvZW5jb2RpbmcvamFwYW5lc2UtZW5jb2RpbmctbWl4Lmh0bWwKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>