<?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>21193</bug_id>
          
          <creation_ts>2013-03-04 20:41:29 +0000</creation_ts>
          <short_desc>&quot;get an encoding for value does not return value&quot;; Percent decoding of code points higher than U+00FF</short_desc>
          <delta_ts>2013-03-07 13:52:37 +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>URL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Occil">poccil</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83966</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Occil">poccil</who>
    <bug_when>2013-03-04 20:41:29 +0000</bug_when>
    <thetext>In this part of the x-www-urlencoded parser:
------
If the use &quot;_charset_&quot; flag is set, name is &quot;_charset_&quot;, and get an encoding for value does not return value, unset the use &quot;_charset_&quot; flag and set encoding override to the result of getting an encoding for value.
------
I assume you mean: &quot;and get an encoding for value does not return failure&quot;.

Since otherwise the _charset_ parameter would be ignored if the encoding exactly equals a supported encoding in the Encoding Standard.

Also, the specification does not define what happens when a code point higher than U+00FF occurs in the input to the percent-decoding algorithm.  It seems to me that the code point is truncated to a byte, though that might not be the intention.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84076</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-03-07 13:52:37 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/cbe881ed3a8128d7586aaed66dfb2638369f99ab

Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>