[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

Paul Monson report at bugs.python.org
Wed May 8 14:27:22 EDT 2019


Paul Monson <paulmons at gmail.com> added the comment:

cp65001 is the default codepage on Windows IoT Core and Windows NanoServer.  

There is also an option in control panel in Windows desktop 1809 (version 17763) and greater which changes the default codepage to cp65001. 
1. Run control.exe
2. Click Clock and Region> change date, time or number formats
3. Click administrative tab
4. Click "Change System locale..." button
5. Check "Beta: Use Unicode UTF-8 for worldwide language support"
6. Click OK twice.
7. You will be prompted to reboot.

> Code page 65001 handles lone surrogate differently on Windows XP and older.

If I read the docs correctly a lone surrogate is an error.  I don't think a corner case like handling errors differently makes cp65001 not UTF-8.  Am I misunderstanding this point?
Also, Why is Windows XP still relevant in this discussion?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36778>
_______________________________________


More information about the Python-bugs-list mailing list