mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Set the default 8-bit encoding based on the system script and language.
This commit is contained in:
parent
f428aef3b2
commit
d1054ef31a
@ -522,6 +522,8 @@ Py_Main(argc, argv)
|
||||
|
||||
Py_Initialize();
|
||||
|
||||
PyUnicode_SetDefaultEncoding(PyMac_getscript());
|
||||
|
||||
PyMac_InstallNavServicesForSF();
|
||||
|
||||
PySys_SetArgv(argc-1, argv+1);
|
||||
|
Loading…
Reference in New Issue
Block a user