summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-11 17:40:47 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-11 17:40:47 (GMT)
commitf1ca0b11b5a86b5b62f51d3ae75fdddb7d1df742 (patch)
tree70403992d17ebe2a89d9c168c5b264456d18b8b8 /Python/pythonrun.c
parentc354c2e6ef54ffc33080323e79c8b0c5e6783dc9 (diff)
downloadcpython-f1ca0b11b5a86b5b62f51d3ae75fdddb7d1df742.zip
cpython-f1ca0b11b5a86b5b62f51d3ae75fdddb7d1df742.tar.gz
cpython-f1ca0b11b5a86b5b62f51d3ae75fdddb7d1df742.tar.bz2
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.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 3df5793..ae5856a 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -695,7 +695,7 @@ initstdio(void)
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 */