]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Set the default 8-bit encoding based on the system script and language.
authorunknown <tools@python.org>
Wed, 4 Jul 2001 22:37:19 +0000 (22:37 +0000)
committerunknown <tools@python.org>
Wed, 4 Jul 2001 22:37:19 +0000 (22:37 +0000)
Mac/Python/macmain.c

index 1d5500f483d029400f37510ce013674119a846db..10c5a5ff74804897e5a56232124f9ed70dd84067 100644 (file)
@@ -522,6 +522,8 @@ Py_Main(argc, argv)
        
        Py_Initialize();
        
+       PyUnicode_SetDefaultEncoding(PyMac_getscript());
+       
        PyMac_InstallNavServicesForSF();
 
        PySys_SetArgv(argc-1, argv+1);