diff Python/pythonrun.c @ 47599:e2eb70235392

Issue 1342: Python could not start if installed in a directory with non-ascii characters. This is the simple fix, which uses the FileSystemEncoding. Replacing all the char* with unicode strings is a major rewrite, and needs more thinking.
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Wed, 11 Jun 2008 17:40:47 +0000
parents 94f64f11fdd0
children da47e7e135ae
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Jun 11 16:57:54 2008 +0000
+++ b/Python/pythonrun.c	Wed Jun 11 17:40:47 2008 +0000
@@ -695,7 +695,7 @@
 	PyObject *std = NULL;
 	int status = 0, fd;
 	PyObject * encoding_attr;
-	char *encoding, *errors;
+	char *encoding = NULL, *errors;
 
 	/* Hack to avoid a nasty recursion issue when Python is invoked
 	   in verbose mode: pre-import the Latin-1 and UTF-8 codecs */