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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19983</bug_id>
          
          <creation_ts>2012-11-16 10:15:57 +0000</creation_ts>
          <short_desc>Confusion between bytes and byte pointers</short_desc>
          <delta_ts>2012-11-16 12:01:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>Encoding</component>
          <version>unspecified</version>
          <rep_platform>All</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></keywords>
          <priority>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Dürst">duerst</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+encodingspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78386</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Dürst">duerst</who>
    <bug_when>2012-11-16 10:15:57 +0000</bug_when>
    <thetext>The spec contains, in several places, the following instruction:

&quot;Let byte be byte pointer.&quot;

This mixes up bytes and byte pointers. A byte pointer is informally defined as &quot;The byte pointer is initially zero, pointing to the first byte in the stream. It cannot be negative. It can be increased and decreased to point to other bytes in the stream.&quot;

So in a stream of 10000 bytes, byte pointer could be 6789, but trying to assign that to byte would obviously not work.

This should be fixed (in all instances) to:

&quot;Let byte be the value at byte pointer.&quot; (or something similar)

The spec should also be carefully checked for other errors of similar nature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78394</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-16 12:01:22 +0000</bug_when>
    <thetext>https://github.com/whatwg/encoding/commit/36758db77b88f2213cf33f1c339d42313408d067</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>