<?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>47867</bug_id>
          
          <creation_ts>2010-10-18 18:49:00 -0700</creation_ts>
          <short_desc>new-run-webkit-tests produces corrupt PNG baselines on Windows</short_desc>
          <delta_ts>2010-10-18 20:00:19 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Russell">kbr</reporter>
          <assigned_to name="Kenneth Russell">kbr</assigned_to>
          <cc>abarth</cc>
    
    <cc>dglazkov</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>jamesr</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>295895</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-18 18:49:00 -0700</bug_when>
    <thetext>new-run-webkit-tests produces corrupt PNG baselines on Windows, at least with the Python from http://www.python.org/, because the output file is opened with mode &quot;w&quot; rather than mode &quot;wb&quot; in WebKitTools/Scripts/webkitpy/layout_tests/port/base.py, update_baseline. Like _expected_file_contents in the same file, the encoding should be tested and &quot;b&quot; used if the encoding is None.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295896</commentid>
    <comment_count>1</comment_count>
      <attachid>71111</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-18 18:52:45 -0700</bug_when>
    <thetext>Created attachment 71111
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295898</commentid>
    <comment_count>2</comment_count>
      <attachid>71111</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-18 18:54:44 -0700</bug_when>
    <thetext>Comment on attachment 71111
Patch

I would have written &quot;if not encoding:&quot;, but this is fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295921</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-18 19:32:47 -0700</bug_when>
    <thetext>Committed r70017: &lt;http://trac.webkit.org/changeset/70017&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295927</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-18 19:38:10 -0700</bug_when>
    <thetext>Committed r70019: &lt;http://trac.webkit.org/changeset/70019&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295939</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-10-18 20:00:19 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/70017 might have broken SnowLeopard Intel Release (Tests)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71111</attachid>
            <date>2010-10-18 18:52:45 -0700</date>
            <delta_ts>2010-10-18 18:54:43 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>png-baseline.patch</filename>
            <type>text/plain</type>
            <size>1288</size>
            <attacher name="Kenneth Russell">kbr</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09P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AgICAgICAgICAgICBkYXRhOiBjb250ZW50cyBvZiB0aGUgYmFz
ZWxpbmUuCiAgICAgICAgICAgICBlbmNvZGluZzogZmlsZSBlbmNvZGluZyB0byB1c2UgZm9yIHRo
ZSBiYXNlbGluZS4KICAgICAgICAgIiIiCi0gICAgICAgIHdpdGggY29kZWNzLm9wZW4ocGF0aCwg
InciLCBlbmNvZGluZz1lbmNvZGluZykgYXMgZmlsZToKKyAgICAgICAgd3JpdGVfbW9kZSA9ICJ3
IgorICAgICAgICBpZiBlbmNvZGluZyBpcyBOb25lOgorICAgICAgICAgICAgd3JpdGVfbW9kZSA9
ICJ3YiIKKyAgICAgICAgd2l0aCBjb2RlY3Mub3BlbihwYXRoLCB3cml0ZV9tb2RlLCBlbmNvZGlu
Zz1lbmNvZGluZykgYXMgZmlsZToKICAgICAgICAgICAgIGZpbGUud3JpdGUoZGF0YSkKIAogICAg
IGRlZiB1cmlfdG9fdGVzdF9uYW1lKHNlbGYsIHVyaSk6Cg==
</data>
<flag name="review"
          id="61079"
          type_id="1"
          status="+"
          setter="eric"
    />
    <flag name="commit-queue"
          id="61080"
          type_id="3"
          status="-"
          setter="kbr"
    />
          </attachment>
      

    </bug>

</bugzilla>