summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorunknown <tools@python.org>2001-07-04 22:37:19 (GMT)
committerunknown <tools@python.org>2001-07-04 22:37:19 (GMT)
commitd1054ef31a816e8a07de8caae14b379039d462ee (patch)
tree9df1193c0dc3440a2497ec0398ba1821d0306bf3 /Mac/Python
parentf428aef3b24e6839168f55dd6238739b4bbfb9fa (diff)
downloadcpython-d1054ef31a816e8a07de8caae14b379039d462ee.zip
cpython-d1054ef31a816e8a07de8caae14b379039d462ee.tar.gz
cpython-d1054ef31a816e8a07de8caae14b379039d462ee.tar.bz2
Set the default 8-bit encoding based on the system script and language.
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macmain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index 1d5500f..10c5a5f 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -522,6 +522,8 @@ Py_Main(argc, argv)
Py_Initialize();
+ PyUnicode_SetDefaultEncoding(PyMac_getscript());
+
PyMac_InstallNavServicesForSF();
PySys_SetArgv(argc-1, argv+1);