- From: poot <cvsmail@w3.org>
- Date: Sat, 6 Jun 2009 10:19:50 +0900 (JST)
- To: public-html-diffs@w3.org
When parsing UTF-16 tentatively, if the new encoding is UTF-16, then
don't treat it as UTF-8. (whatwg r3204)
Diffs for this change per section:
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2357.html#index
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2357.html#change-the-encoding
http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2356&r2=1.2357&f=h
http://html5.org/tools/web-apps-tracker?from=3203&to=3204
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2356
retrieving revision 1.2357
diff -u -d -r1.2356 -r1.2357
--- Overview.html 6 Jun 2009 00:19:18 -0000 1.2356
+++ Overview.html 6 Jun 2009 01:18:15 -0000 1.2357
@@ -53600,10 +53600,7 @@
failed to find an encoding, or if it found an encoding that was not
the actual encoding of the file.</p>
- <ol><li>If the new encoding is a UTF-16 encoding, change it to
- UTF-8.</li>
-
- <li>If the new encoding is identical or equivalent to the encoding
+ <ol><li>If the new encoding is identical or equivalent to the encoding
that is already being used to interpret the input stream, then set
the <a href="#concept-encoding-confidence" title="concept-encoding-confidence">confidence</a> to
<i>certain</i> and abort these steps. This happens when the
@@ -53613,6 +53610,9 @@
pass found that the encoding sniffing algorithm described in the
earlier section failed to find the right encoding.</li>
+ <li>If the new encoding is a UTF-16 encoding, change it to
+ UTF-8.</li>
+
<li>If all the bytes up to the last byte converted by the current
decoder have the same Unicode interpretations in both the current
encoding and the new encoding, and if the user agent supports
@@ -64762,6 +64762,7 @@
Justin Sinclair,
Kai Hendry,
Kartikaya Gupta,
+ Kornél Pál,
Kristof Zelechovski,
黒澤剛志 (KUROSAWA Takeshi),
Kyle Hofmann<!-- Ozob -->,
Received on Saturday, 6 June 2009 01:20:25 UTC