This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python/pythonrun.c: get_codec_name() typo
Type: Stage:
Components: Interpreter Core Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vstinner Nosy List: python-dev, vstinner, ysj.ray
Priority: normal Keywords:

Created on 2011-03-17 14:17 by ysj.ray, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg131252 - (view) Author: ysj.ray (ysj.ray) Date: 2011-03-17 14:17
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);
msg131553 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-03-20 22:09
New changeset 929aafef5b05 by Victor Stinner in branch 'default':
Fix #11586: typo in initfsencoding()
http://hg.python.org/cpython/rev/929aafef5b05
msg131554 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-03-20 22:23
New changeset 0b6f6514461e by Victor Stinner in branch '3.2':
Fix #11586: typo in initfsencoding()
http://hg.python.org/cpython/rev/0b6f6514461e
msg131555 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-03-20 22:26
Fixed, thanks Ray.
History
Date User Action Args
2022-04-11 14:57:14adminsetgithub: 55795
2011-03-20 22:26:40vstinnersetstatus: open -> closed

messages: + msg131555
resolution: fixed
nosy: vstinner, ysj.ray, python-dev
2011-03-20 22:23:42python-devsetnosy: vstinner, ysj.ray, python-dev
messages: + msg131554
2011-03-20 22:09:22python-devsetnosy: + python-dev
messages: + msg131553
2011-03-17 14:18:11pitrousetassignee: vstinner

nosy: + vstinner
2011-03-17 14:17:14ysj.raycreate