Bug 223496
| Summary: | [WinCairo] http/tests/mime/quoted-charset.py is failing since r273819 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | stephan.szabo |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Fujii Hironori
[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 ]
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
If I run the test on my Windows PC,
> 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.
> AH01215: Traceback (most recent call last):\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
> AH01215: File "C:\\home\\webkit\\gb\\LayoutTests\\http\\tests\\mime\\quoted-charset.py", line 7, in <module>\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
> AH01215: print('''<p>Should say SUCCESS: {}</p>\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
> AH01215: File "C:\\Python39\\lib\\encodings\\cp1252.py", line 19, in encode\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
> AH01215: return codecs.charmap_encode(input,self.errors,encoding_table)[0]\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
> AH01215: UnicodeEncodeError: 'charmap' codec can't encode characters in position 25-27: character maps to <undefined>\r: C:/home/webkit/gb/LayoutTests/http/tests/mime/quoted-charset.py
Fujii Hironori
https://docs.python.org/3/using/cmdline.html
> -X utf8 enables UTF-8 mode for operating system interfaces,
> overriding the default locale-aware mode. -X utf8=0 explicitly
> disables UTF-8 mode (even when it would otherwise activate
> automatically). See PYTHONUTF8 for more details.
reg add HKEY_CLASSES_ROOT\.py\Shell\ExecCGI\Command /ve /d "c:\Python39\python.exe -X utf8"
This can solve the problems.
Stephan Szabo
Thanks. I'm updating the running instances and will update the powershell module afterwards.
Fujii Hironori
Thank you, Steph.
https://github.com/WebKitForWindows/powershell-webkit-dev/commit/9dafaaf3778c1bed45fd570d0114c4200d5c787a