<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_codecs.py, branch v2.4.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_codecs.py?h=v2.4.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_codecs.py?h=v2.4.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-03-06T22:44:03Z</updated>
<entry>
<title>Backport revision 42872:</title>
<updated>2006-03-06T22:44:03Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2006-03-06T22:44:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a4b4dc328f0769f90c3ebb743280b48d4eae7b7c'/>
<id>urn:sha1:a4b4dc328f0769f90c3ebb743280b48d4eae7b7c</id>
<content type='text'>
If size is specified, try to read at least size characters.
This is a alternative version of patch #1379332.
</content>
</entry>
<entry>
<title>Backport checkin:</title>
<updated>2005-08-30T10:46:06Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-08-30T10:46:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd8e0170e2335da86d491d0324b47a3276032b90'/>
<id>urn:sha1:fd8e0170e2335da86d491d0324b47a3276032b90</id>
<content type='text'>
SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the patch by Nik Haldimann that detects truncated data)
</content>
</entry>
<entry>
<title>Make IDNA return an empty string when the input is empty. Fixes #1163178.</title>
<updated>2005-08-25T11:04:04Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2005-08-25T11:04:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dedff272fa40738d282d71a7763ab679fc1f40d3'/>
<id>urn:sha1:dedff272fa40738d282d71a7763ab679fc1f40d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backport checkin:</title>
<updated>2005-07-20T22:52:09Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-07-20T22:52:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ba72589680bfc59bc699ca0051be617bb82758b8'/>
<id>urn:sha1:ba72589680bfc59bc699ca0051be617bb82758b8</id>
<content type='text'>
Make attributes and local variables in the StreamReader str objects instead
of unicode objects, so that codecs that do a str-&gt;str decoding won't promote
the result to unicode. This fixes SF bug #1241507.
</content>
</entry>
<entry>
<title>Backport checkin (and the appropriate fix to the test):</title>
<updated>2005-04-21T21:53:43Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-04-21T21:53:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4d3fec604dadbffe5211c6ca21fa05c72cbceefd'/>
<id>urn:sha1:4d3fec604dadbffe5211c6ca21fa05c72cbceefd</id>
<content type='text'>
If the data read from the bytestream in readline() ends in a '\r' read one more
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396.
</content>
</entry>
<entry>
<title>Backport checkin:</title>
<updated>2005-04-04T21:56:28Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-04-04T21:56:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=67e4ecd451fb7d675603b93e035883b4a2bdf277'/>
<id>urn:sha1:67e4ecd451fb7d675603b93e035883b4a2bdf277</id>
<content type='text'>
Fix for SF bug #1175396: readline() will now read one more character, if
the last character read is "\r" (and size is None, i.e. we're allowed to
call read() multiple times), so that we can return the correct line ending
(this additional character might be a "\n").

If the stream is temporarily exhausted, we might return the wrong line ending
(if the last character read is "\r" and the next one (after the byte stream
provides more data) is "\n", but at least the atcr member ensures that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending).
</content>
</entry>
<entry>
<title>Backport checkin:</title>
<updated>2005-03-14T19:20:19Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-03-14T19:20:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=96aeafbfbcd1fe6a6f5703d030560a133f7baf1f'/>
<id>urn:sha1:96aeafbfbcd1fe6a6f5703d030560a133f7baf1f</id>
<content type='text'>
Reset internal buffers when seek() is called. This fixes SF bug #1156259.
</content>
</entry>
<entry>
<title>Backport checkin:</title>
<updated>2005-01-10T12:26:00Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-01-10T12:26:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=55d3a19643b00ff8f54aac7b3aeeeb4a62ec7e7a'/>
<id>urn:sha1:55d3a19643b00ff8f54aac7b3aeeeb4a62ec7e7a</id>
<content type='text'>
Fix and test for SF bug #1098990: codec readline() splits lines apart.
</content>
</entry>
<entry>
<title>Backport checkin:</title>
<updated>2004-12-21T22:35:24Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-12-21T22:35:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d0e18e48d2e05b323fdbcd1b11cafc5b85de726a'/>
<id>urn:sha1:d0e18e48d2e05b323fdbcd1b11cafc5b85de726a</id>
<content type='text'>
The changes to the stateful codecs in 2.4 resulted in StreamReader.readline()
trying to return a complete line even if a size parameter was given (see
http://www.python.org/sf/1076985). This leads to buffer overflows with long
source lines under Windows if e.g. cp1252 is used as the source encoding.
This patch reverts the behaviour of readline() to something that behaves more
like Python 2.3: If a size parameter is given, read() is called only once.

As a side effect of this, readline() now supports all types of linebreaks
supported by unicode.splitlines().

Note that the tokenizer is still broken and it's possible to provoke segfaults
(see http://www.python.org/sf/1089395).
</content>
</entry>
<entry>
<title>Trigger a few error cases in Modules/_codecsmodule.c.</title>
<updated>2004-10-28T13:04:26Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-10-28T13:04:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=063e1e846dc5c3fe593cef5b14cc429369dcd2c2'/>
<id>urn:sha1:063e1e846dc5c3fe593cef5b14cc429369dcd2c2</id>
<content type='text'>
</content>
</entry>
</feed>
