You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PythonParserTestCase.setUpClass (Lib/test/test_peg_generator/test_c_parser.py) creates a venv in the regrtest working directory — whose name has a non-ASCII suffix (os_helper.FS_NONASCII, æ on Windows) — then runs a child that prints sysconfig.get_path('platlib'). In a non-UTF-8 locale whose code page cannot encode that character (e.g. cp932 or cp1251 on Windows), the child's stdout cannot encode the path and it fails with UnicodeEncodeError:
UnicodeEncodeError: 'cp932' codec can't encode character '\xe6' in position 46: illegal multibyte sequence
Bug report
PythonParserTestCase.setUpClass(Lib/test/test_peg_generator/test_c_parser.py) creates a venv in the regrtest working directory — whose name has a non-ASCII suffix (os_helper.FS_NONASCII,æon Windows) — then runs a child that printssysconfig.get_path('platlib'). In a non-UTF-8 locale whose code page cannot encode that character (e.g. cp932 or cp1251 on Windows), the child's stdout cannot encode the path and it fails withUnicodeEncodeError:The child should emit the path in UTF-8.
Linked PRs