mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
This commit is contained in:
parent
620c0837bd
commit
73d538b9c6
6 changed files with 67 additions and 22 deletions
|
@ -109,8 +109,7 @@ elif os.name != 'riscos':
|
|||
TESTFN_UNICODE="@test-\xe0\xf2"
|
||||
else:
|
||||
TESTFN_UNICODE=unicode("@test-\xe0\xf2", "latin-1") # 2 latin characters.
|
||||
if os.name=="nt":
|
||||
TESTFN_ENCODING="mbcs"
|
||||
TESTFN_ENCODING=sys.getfilesystemencoding()
|
||||
else:
|
||||
TESTFN = 'test'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue