Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1054ef

Browse files
author
unknown
committed
Set the default 8-bit encoding based on the system script and language.
1 parent f428aef commit d1054ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Python/macmain.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ Py_Main(argc, argv)
522522

523523
Py_Initialize();
524524

525+
PyUnicode_SetDefaultEncoding(PyMac_getscript());
526+
525527
PyMac_InstallNavServicesForSF();
526528

527529
PySys_SetArgv(argc-1, argv+1);

0 commit comments

Comments
 (0)