]> granicus.if.org Git - python/commitdiff
Take out the setlocale() call. It affects atof() and will break
authorGuido van Rossum <guido@python.org>
Fri, 31 Oct 1997 18:25:15 +0000 (18:25 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 31 Oct 1997 18:25:15 +0000 (18:25 +0000)
floating point literals.  Need to do this differently...

Modules/main.c

index 0b35a9415e8dc906edbfdcb3660dcd53e74e350b..df79ab5c4d87a1b38fb01cd0df5a266a28b1edb4 100644 (file)
@@ -37,10 +37,6 @@ PERFORMANCE OF THIS SOFTWARE.
 #include <unistd.h>
 #endif
 
-#ifdef HAVE_LOCALE_H
-#include <locale.h>
-#endif
-
 #ifdef MS_WINDOWS
 #include <fcntl.h>
 #endif
@@ -105,10 +101,6 @@ 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;