From e53de3dc4a9021b5edabd44fd495df7770b6249c Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Wed, 14 Apr 2010 03:01:39 +0000 Subject: #7301: decode $PYTHONWARNINGS in the same way as argv, test non-ascii values --- Modules/python.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/python.c') diff --git a/Modules/python.c b/Modules/python.c index edd33f433a..7bc9c3a2d2 100644 --- a/Modules/python.c +++ b/Modules/python.c @@ -14,8 +14,8 @@ wmain(int argc, wchar_t **argv) return Py_Main(argc, argv); } #else -static wchar_t* -char2wchar(char* arg) +wchar_t* +_Py_char2wchar(char* arg) { wchar_t *res; #ifdef HAVE_BROKEN_MBSTOWCS @@ -143,7 +143,7 @@ main(int argc, char **argv) oldloc = strdup(setlocale(LC_ALL, NULL)); setlocale(LC_ALL, ""); for (i = 0; i < argc; i++) { - argv_copy2[i] = argv_copy[i] = char2wchar(argv[i]); + argv_copy2[i] = argv_copy[i] = _Py_char2wchar(argv[i]); if (!argv_copy[i]) return 1; } -- cgit v1.2.1