New submission from Ray.Allen <ysj....@gmail.com>: I guess there is a typo in the source of this function: Python/pythonrun.c: get_codec_name()
diff -r 48970d754841 Python/pythonrun.c --- a/Python/pythonrun.c Thu Mar 17 17:06:27 2011 +0800 +++ b/Python/pythonrun.c Thu Mar 17 22:11:15 2011 +0800 @@ -147,7 +147,7 @@ goto error; name_utf8 = _PyUnicode_AsString(name); - if (name == NULL) + if (name_utf8 == NULL) goto error; name_str = strdup(name_utf8); Py_DECREF(name); ---------- components: Interpreter Core messages: 131252 nosy: ysj.ray priority: normal severity: normal status: open title: Python/pythonrun.c: get_codec_name() typo versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11586> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com