Commits

Guido van Rossum  committed 6a91a0f

Add call to setlocale(LC_ALL, "").

  • Participants
  • Parent commits 9416375
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/main.c

 #include <unistd.h>
 #endif
 
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+
 #ifdef MS_WINDOWS
 #include <fcntl.h>
 #endif
 	int unbuffered = 0;
 	int stdin_is_interactive = 0;
 
+#ifdef HAVE_SETLOCALE
+	setlocale(LC_ALL, "");
+#endif
+
 	orig_argc = argc;	/* For Py_GetArgcArgv() */
 	orig_argv = 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