| Summary: | [WinCairo] http/tests/mime/quoted-charset.py is failing since r273819 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> |
| 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 | ||
|
Description
Fujii Hironori
2021-03-18 19:20:09 PDT
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 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. Thanks. I'm updating the running instances and will update the powershell module afterwards. |