diff options
author | Guido van Rossum <guido@python.org> | 1997-10-08 22:49:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-08 22:49:17 (GMT) |
commit | 44c36bb1144bc96fa7e840b73903194e1f216548 (patch) | |
tree | 29534370fde3c14339c3970b9b812b448bf74401 | |
parent | 9601315140cc505e17318d766e0bedec91e6b9ec (diff) | |
download | cpython-44c36bb1144bc96fa7e840b73903194e1f216548.zip cpython-44c36bb1144bc96fa7e840b73903194e1f216548.tar.gz cpython-44c36bb1144bc96fa7e840b73903194e1f216548.tar.bz2 |
Add call to setlocale(LC_ALL, "").
-rw-r--r-- | Modules/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index ef18fe6..0b35a94 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -37,6 +37,10 @@ PERFORMANCE OF THIS SOFTWARE. #include <unistd.h> #endif +#ifdef HAVE_LOCALE_H +#include <locale.h> +#endif + #ifdef MS_WINDOWS #include <fcntl.h> #endif @@ -101,6 +105,10 @@ Py_Main(argc, argv) int unbuffered = 0; int stdin_is_interactive = 0; +#ifdef HAVE_SETLOCALE + setlocale(LC_ALL, ""); +#endif + orig_argc = argc; /* For Py_GetArgcArgv() */ orig_argv = argv; @@ -109,7 +117,6 @@ Py_Main(argc, argv) if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0') unbuffered = 1; - Py_UseClassExceptionsFlag = 1; while ((c = getopt(argc, argv, "c:diOSuvX")) != EOF) { if (c == 'c') { /* -c is the last option; following arguments |