diff Mac/Python/macmain.c @ 18386:8cdff545cbde legacy-trunk

Set the default 8-bit encoding based on the system script and language.
author unknown <tools@python.org>
date Wed, 04 Jul 2001 22:37:19 +0000
parents a9485d404f05
children d7590122f9a2
line wrap: on
line diff
--- a/Mac/Python/macmain.c	Wed Jul 04 22:36:27 2001 +0000
+++ b/Mac/Python/macmain.c	Wed Jul 04 22:37:19 2001 +0000
@@ -522,6 +522,8 @@
 	
 	Py_Initialize();
 	
+	PyUnicode_SetDefaultEncoding(PyMac_getscript());
+	
 	PyMac_InstallNavServicesForSF();
 
 	PySys_SetArgv(argc-1, argv+1);