diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-11 17:40:47 +0000 |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-11 17:40:47 +0000 |
commit | 254713bb1332212018722cc7053af042f74b1311 (patch) | |
tree | 4fb9f1c05ab64da0ed2e5fcc2d7965e150b740bb /Python/pythonrun.c | |
parent | dceed736a809c7035e42f607714d6a76f0b25aab (diff) | |
download | cpython-254713bb1332212018722cc7053af042f74b1311.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 3df5793e5f..ae5856a13a 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 */ |