Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 18385:834792523094 | 18386:8cdff545cbde |
|---|---|
| 520 /* We initialize the menubar here, hoping SIOUX is initialized by now */ | 520 /* We initialize the menubar here, hoping SIOUX is initialized by now */ |
| 521 PyMac_InitMenuBar(); | 521 PyMac_InitMenuBar(); |
| 522 | 522 |
| 523 Py_Initialize(); | 523 Py_Initialize(); |
| 524 | 524 |
| 525 PyUnicode_SetDefaultEncoding(PyMac_getscript()); | |
| 526 | |
| 525 PyMac_InstallNavServicesForSF(); | 527 PyMac_InstallNavServicesForSF(); |
| 526 | 528 |
| 527 PySys_SetArgv(argc-1, argv+1); | 529 PySys_SetArgv(argc-1, argv+1); |
| 528 | 530 |
| 529 if (filename == NULL && isatty((int)fileno(fp))) { | 531 if (filename == NULL && isatty((int)fileno(fp))) { |
