<?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>223496</bug_id>
          
          <creation_ts>2021-03-18 19:20:09 -0700</creation_ts>
          <short_desc>[WinCairo] http/tests/mime/quoted-charset.py is failing since r273819</short_desc>
          <delta_ts>2021-03-20 15:18:18 -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>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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>stephan.szabo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1741558</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-03-18 19:20:09 -0700</bug_when>
    <thetext>[WinCairo] http/tests/mime/quoted-charset.py is failing since r273819

  http/tests/mime/quoted-charset.py [ Failure ]
  http/tests/misc/bad-charset-alias.html [ Timeout ]
  http/tests/misc/url-in-utf16be.html [ Timeout ]
  http/tests/misc/url-in-utf16le.html [ Timeout ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741559</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-03-18 19:22:43 -0700</bug_when>
    <thetext>If I run the test on my Windows PC,

&gt; python.exe ./Tools/Scripts/run-webkit-tests --debug --wincairo --no-new-test-results --no-retry-failures --no-show-results http/tests/mime/quoted-charset.py

WebKitBuild/Debug/bin64/layout-test-results/error_log.txt contains the following error message.

&gt; AH01215: Traceback (most recent call last):\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
&gt; AH01215:   File &quot;C:\\home\\webkit\\gb\\LayoutTests\\http\\tests\\mime\\quoted-charset.py&quot;, line 7, in &lt;module&gt;\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
&gt; AH01215:     print(&apos;&apos;&apos;&lt;p&gt;Should say SUCCESS: {}&lt;/p&gt;\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
&gt; AH01215:   File &quot;C:\\Python39\\lib\\encodings\\cp1252.py&quot;, line 19, in encode\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
&gt; AH01215:     return codecs.charmap_encode(input,self.errors,encoding_table)[0]\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
&gt; AH01215: UnicodeEncodeError: &apos;charmap&apos; codec can&apos;t encode characters in position 25-27: character maps to &lt;undefined&gt;\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741560</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-03-18 19:23:54 -0700</bug_when>
    <thetext>https://docs.python.org/3/using/cmdline.html

&gt; -X utf8 enables UTF-8 mode for operating system interfaces,
&gt;  overriding the default locale-aware mode. -X utf8=0 explicitly
&gt;  disables UTF-8 mode (even when it would otherwise activate
&gt;  automatically). See PYTHONUTF8 for more details.

reg add HKEY_CLASSES_ROOT\.py\Shell\ExecCGI\Command /ve /d &quot;c:\Python39\python.exe -X utf8&quot;

This can solve the problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741720</commentid>
    <comment_count>3</comment_count>
    <who name="Stephan Szabo">stephan.szabo</who>
    <bug_when>2021-03-19 08:55:57 -0700</bug_when>
    <thetext>Thanks. I&apos;m updating the running instances and will update the powershell module afterwards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742035</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-03-20 15:18:18 -0700</bug_when>
    <thetext>Thank you, Steph.
https://github.com/WebKitForWindows/powershell-webkit-dev/commit/9dafaaf3778c1bed45fd570d0114c4200d5c787a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>