<?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>117196</bug_id>
          
          <creation_ts>2013-06-04 07:31:37 -0700</creation_ts>
          <short_desc>[curl] Headers should be parsed as utf8 if possible</short_desc>
          <delta_ts>2013-06-13 06:59:01 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>---</target_milestone>
          
          <blocked>117300</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Peter Gal">galpeter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>896888</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2013-06-04 07:31:37 -0700</bug_when>
    <thetext>When the server returns the header data for the curl backend it is passed to be converted as a latin1 string. This is not always good.
For example there is a testcase which fails currently: http/tests/download/literal-utf-8.html.

The solution would be to process the input headers as utf8 strings. This solution in the libsoup backend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>896889</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2013-06-04 07:32:07 -0700</bug_when>
    <thetext>I mean:
&quot;This solution in the libsoup backend.&quot; -&gt; This solution is also used in the libsoup backend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>896890</commentid>
    <comment_count>2</comment_count>
      <attachid>203694</attachid>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2013-06-04 07:33:11 -0700</bug_when>
    <thetext>Created attachment 203694
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>897119</commentid>
    <comment_count>3</comment_count>
      <attachid>203694</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-06-04 20:36:58 -0700</bug_when>
    <thetext>Comment on attachment 203694
proposed patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>897120</commentid>
    <comment_count>4</comment_count>
      <attachid>203694</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-06-04 20:58:36 -0700</bug_when>
    <thetext>Comment on attachment 203694
proposed patch

Clearing flags on attachment: 203694

Committed r151195: &lt;http://trac.webkit.org/changeset/151195&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>897121</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-06-04 20:58:38 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>203694</attachid>
            <date>2013-06-04 07:33:11 -0700</date>
            <delta_ts>2013-06-04 20:58:36 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>curl_utf8_headers.patch</filename>
            <type>text/plain</type>
            <size>1458</size>
            <attacher name="Peter Gal">galpeter</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA5YWQ2OGU1Li45M2I0YzhkIDEwMDY0NAotLS0gYS9Tb3VyY2Uv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