diff Modules/python.c @ 60593:62d11785204f

#7301: decode $PYTHONWARNINGS in the same way as argv, test non-ascii values
author Philip Jenvey <pjenvey@underboss.org>
date Wed, 14 Apr 2010 03:01:39 +0000
parents ec5d228a83ef
children c532afb0fa89
line wrap: on
line diff
--- a/Modules/python.c	Tue Apr 13 17:37:01 2010 +0000
+++ b/Modules/python.c	Wed Apr 14 03:01:39 2010 +0000
@@ -14,8 +14,8 @@
 	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 @@
 	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;
 	}