New submission from Segev Finer <segev...@gmail.com>: The following test is failing randomly for me (python -m test test_uuid -v): ====================================================================== ERROR: test_ipconfig_getnode (test.test_uuid.TestInternalsWithoutExtModule) ---------------------------------------------------------------------- Traceback (most recent call last): File "cpython\lib\test\test_uuid.py", line 551, in test_ipconfig_getnode node = self.uuid._ipconfig_getnode() File "cpython\lib\uuid.py", line 487, in _ipconfig_getnode for line in pipe: File "cpython\lib\encodings\cp1255.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 682: character maps to <undefined>
This is caused by trying to decode the output of "ipconfig" using cp1255, while the output really uses cp862 and annoyingly it started to print times using the current locale (Which displays broken in the console anyhow, question mark boxes... *sigh*) in some Windows version (Using Windows 10.0.16299 ATM). ---------- components: Windows messages: 308597 nosy: Segev Finer, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Wrong ANSI encoding used by subprocess for some locales type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32370> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com