From f1ca0b11b5a86b5b62f51d3ae75fdddb7d1df742 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Wed, 11 Jun 2008 17:40:47 +0000 Subject: 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. --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') 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 */ -- cgit v1.2.1