mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Fix a few more Python tests
This commit is contained in:
parent
59e1c245d1
commit
bc464a8898
7 changed files with 1018 additions and 547 deletions
2
third_party/python/Lib/_bootlocale.py
vendored
2
third_party/python/Lib/_bootlocale.py
vendored
|
@ -23,7 +23,7 @@ else:
|
|||
def getpreferredencoding(do_setlocale=True):
|
||||
assert not do_setlocale
|
||||
result = _locale.nl_langinfo(_locale.CODESET)
|
||||
if not result and sys.platform == 'darwin':
|
||||
if not result and sys.platform in ('darwin', 'cosmo'):
|
||||
# nl_langinfo can return an empty string
|
||||
# when the setting has an invalid value.
|
||||
# Default to UTF-8 in that case because
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue