summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-09-04 05:04:25 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-09-04 05:04:25 (GMT)
commit8a9583ec5c00384514fe9f5045866ad6ebd2be5a (patch)
treee360bd182c5c79d8dd3ca9147fce290b9efdda03 /Misc
parent451e99b393529b45db3b68daaf09925ea863bf1a (diff)
downloadcpython-8a9583ec5c00384514fe9f5045866ad6ebd2be5a.zip
cpython-8a9583ec5c00384514fe9f5045866ad6ebd2be5a.tar.gz
cpython-8a9583ec5c00384514fe9f5045866ad6ebd2be5a.tar.bz2
PyTokenizer_FindEncoding() always failed because it set the tokenizer state
with only a file pointer when it called fp_setreadl() which expected a file path. Changed fp_setreadl() to use either a file path or file descriptor (derived from the file pointer) to fix the issue. Closes issue 3594. Reviewed by Antoine Pitrou and Benjamin Peterson.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e393c06..3e77aa2 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ What's New in Python 3.0 release candidate 1
Core and Builtins
-----------------
+- Issue 3594: Fix Parser/tokenizer.c:fp_setreadl() to open the file being
+ tokenized by either a file path or file pointer for the benefit of
+ PyTokenizer_FindEncoding().
+
- Issue #3696: Error parsing arguments on OpenBSD <= 4.4 and Cygwin. On
these systems, the mbstowcs() function is slightly buggy and must be
replaced with strlen() for the purpose of counting of number of wide