<?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>212425</bug_id>
          
          <creation_ts>2020-05-27 11:47:54 -0700</creation_ts>
          <short_desc>webkit-patch create-revert cannot handle reason string with Unicode characters (like smart quotes)</short_desc>
          <delta_ts>2020-06-06 21:16:52 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=212422</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1656486</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-05-27 11:47:54 -0700</bug_when>
    <thetext>If we pass non-ascii reason text to this command, it fails.

Traceback (most recent call last):
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkit-patch&quot;, line 80, in &lt;module&gt;
    main()
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkit-patch&quot;, line 75, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py&quot;, line 55, in execute
    self._sequence.run_and_handle_errors(tool, options, state)
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 73, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 67, in _run
    step(tool, options).run(state)
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/steps/preparechangelogforrevert.py&quot;, line 62, in run
    message = self._message_for_revert(state[&quot;revision_list&quot;], state[&quot;reason&quot;], state[&quot;description_list&quot;], reverted_bug_url_list, revert_bug_url)
  File &quot;/home/yusukesuzuki/dev/OpenSource/Tools/Scripts/webkitpy/tool/steps/preparechangelogforrevert.py&quot;, line 48, in _message_for_revert
    message += &quot;\&quot;%s\&quot;\n&quot; % description_list[index]
UnicodeDecodeError: &apos;ascii&apos; codec can&apos;t decode byte 0xe2 in position 79: ordinal not in range(128)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656496</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-05-27 11:54:26 -0700</bug_when>
    <thetext>See:  Bug 212422: REGRESSION(r260023): “Regression in ITP sparse plist decoding.”</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656499</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-05-27 11:55:49 -0700</bug_when>
    <thetext>Note that Slack appears to default to using smart quotes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656523</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-05-27 12:50:01 -0700</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #2)
&gt; Note that Slack appears to default to using smart quotes.

We should fix this bug, but I also think that we should convert smart quotes to normal quotes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660039</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-06 21:16:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/64081137&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>