mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465.
This commit is contained in:
parent
342c65e19a
commit
ef8b654bbe
7 changed files with 197 additions and 56 deletions
|
@ -63,6 +63,10 @@ if os.name == 'java':
|
|||
TESTFN = '$test'
|
||||
elif os.name != 'riscos':
|
||||
TESTFN = '@test'
|
||||
# Unicode name only used if TEST_FN_ENCODING exists for the platform.
|
||||
TESTFN_UNICODE=u"@test-\xe0\xf2" # 2 latin characters.
|
||||
if os.name=="nt":
|
||||
TESTFN_ENCODING="mbcs"
|
||||
else:
|
||||
TESTFN = 'test'
|
||||
del os
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue