mirror of
https://github.com/python/cpython.git
synced 2025-09-03 23:41:18 +00:00
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.
This commit is contained in:
parent
c354c2e6ef
commit
f1ca0b11b5
3 changed files with 15 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue