<?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>104932</bug_id>
          
          <creation_ts>2012-12-13 10:19:20 -0800</creation_ts>
          <short_desc>PrettyDiff.rb fails to render image diffs with Ruby 1.9.3p194</short_desc>
          <delta_ts>2012-12-30 13:23:13 -0800</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>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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Robinson">mrobinson</reporter>
          <assigned_to name="Martin Robinson">mrobinson</assigned_to>
          <cc>aroben</cc>
    
    <cc>dbates</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>790726</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-12-13 10:19:20 -0800</bug_when>
    <thetext>When rendering image diffs with Ruby 1.9.3p194, instead of the image diffs in the output, I see this:

Exception raised during decoding git binary patch:

invalid byte sequence in UTF-8
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:680:in `match&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:680:in `match&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:680:in `read_checksum_from_png&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:589:in `block in initialize&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:589:in `collect&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:589:in `initialize&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:675:in `new&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:675:in `block in parse&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:675:in `collect&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:675:in `parse&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:33:in `prettify&apos;
/home/martin/WebKit/Websites/bugs.webkit.org/PrettyPatch/prettify.rb:26:in `&lt;main&gt;&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>791388</commentid>
    <comment_count>1</comment_count>
      <attachid>179433</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-12-14 00:02:41 -0800</bug_when>
    <thetext>Created attachment 179433
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>791390</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-12-14 00:03:11 -0800</bug_when>
    <thetext>See also: https://bugs.webkit.org/show_bug.cgi?id=91212</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798077</commentid>
    <comment_count>3</comment_count>
      <attachid>179433</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-12-29 01:15:19 -0800</bug_when>
    <thetext>Comment on attachment 179433
Patch

Seems reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798142</commentid>
    <comment_count>4</comment_count>
      <attachid>179433</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-29 08:25:42 -0800</bug_when>
    <thetext>Comment on attachment 179433
Patch

Rejecting attachment 179433 from commit-queue.

Failed to run &quot;[u&apos;/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch&apos;, u&apos;--status-host=queues.webkit.org&apos;, ...&quot; exit_code: 2 cwd: /mnt/git/webkit-commit-queue

Last 500 characters of output:
eidel&apos;]&quot; exit_code: 1 cwd: /mnt/git/webkit-commit-queue

Parsed 2 diffs from patch file(s).
patching file Websites/bugs.webkit.org/ChangeLog
patching file Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb
Hunk #1 FAILED at 676.
1 out of 1 hunk FAILED -- saving rejects to file Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb.rej

Failed to run &quot;[u&apos;/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply&apos;, u&apos;--force&apos;, u&apos;--reviewer&apos;, u&apos;Eric Seidel&apos;]&quot; exit_code: 1 cwd: /mnt/git/webkit-commit-queue

Full output: http://queues.webkit.org/results/15591198</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798257</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-12-30 13:23:13 -0800</bug_when>
    <thetext>Committed r138585: &lt;http://trac.webkit.org/changeset/138585&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>179433</attachid>
            <date>2012-12-14 00:02:41 -0800</date>
            <delta_ts>2012-12-29 08:25:42 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-104932-20121214090000.patch</filename>
            <type>text/plain</type>
            <size>1770</size>
            <attacher name="Martin Robinson">mrobinson</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjog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NlX2VuY29kaW5nKCdiaW5hcnknKQorICAgICAgICAgICAgZW5kCiAgICAgICAg
ICAgICBtYXRjaCA9IHBuZ19ieXRlcyAmJiBwbmdfYnl0ZXMubWF0Y2goL3RFWHRjaGVja3N1bVww
KC57MzJ9KS9uKQogICAgICAgICAgICAgbWF0Y2ggPyBtYXRjaFsxXSA6IG5pbAogICAgICAgICBl
bmQK
</data>
<flag name="review"
          id="196305"
          type_id="1"
          status="+"
          setter="eric"
    />
    <flag name="commit-queue"
          id="198371"
          type_id="3"
          status="-"
          setter="webkit.review.bot"
    />
          </attachment>
      

    </bug>

</bugzilla>