commit | 85bcc66bb492931b6ca3de21ca53ca53b754be33 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Sep 04 09:18:06 2007 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Sep 04 09:18:06 2007 +0000 |
tree | 3e46f8d106d8ac338238c146480568dd4a3c0083 | |
parent | 53de1902e7a9788d2d4b917b1b14b2a76171f0f4 [diff] [blame] |
Convert code from sys.stdin.encoding to UTF-8 in interactive mode. Fixes #1100.
diff --git a/Python/import.c b/Python/import.c index 7283783..c2f42e9 100644 --- a/Python/import.c +++ b/Python/import.c
@@ -809,7 +809,8 @@ if (arena == NULL) return NULL; - mod = PyParser_ASTFromFile(fp, pathname, Py_file_input, 0, 0, 0, + mod = PyParser_ASTFromFile(fp, pathname, NULL, + Py_file_input, 0, 0, 0, NULL, arena); if (mod) { co = PyAST_Compile(mod, pathname, NULL, arena);