mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Set the default 8-bit encoding based on the system script and language.
This commit is contained in:
parent
f428aef3b2
commit
d1054ef31a
1 changed files with 2 additions and 0 deletions
|
@ -522,6 +522,8 @@ Py_Main(argc, argv)
|
|||
|
||||
Py_Initialize();
|
||||
|
||||
PyUnicode_SetDefaultEncoding(PyMac_getscript());
|
||||
|
||||
PyMac_InstallNavServicesForSF();
|
||||
|
||||
PySys_SetArgv(argc-1, argv+1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue