summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/utf_16.py
Commit message (Collapse)AuthorAgeFilesLines
* SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now supportWalter Dörwald2004-09-071-39/+25
| | | | | | | | | | | decoding incomplete input (when the input stream is temporarily exhausted). codecs.StreamReader now implements buffering, which enables proper readline support for the UTF-16 decoders. codecs.StreamReader.read() has a new argument chars which specifies the number of characters to return. codecs.StreamReader.readline() and codecs.StreamReader.readlines() have a new argument keepends. Trailing "\n"s will be stripped from the lines if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and PyUnicode_DecodeUTF16Stateful.
* Whitespace normalization.Tim Peters2002-08-081-2/+1
|
* Fix for bug #222395: UTF-16 et al. don't handle .readline().Marc-André Lemburg2002-04-051-0/+3
| | | | They now raise an NotImplementedError to hint to the truth ;-)
* This patch by Martin v. Loewis changes the UTF-16 codec to onlyMarc-André Lemburg2001-06-191-3/+33
| | | | | | | | | | | write a BOM at the start of the stream and also to only read it as BOM at the start of a stream. Subsequent reading/writing of BOMs will read/write the BOM as ZWNBSP character. This is in sync with the Unicode specifications. Note that UTF-16 files will now *have* to start with a BOM mark in order to be readable by the codec.
* Marc-Andre Lemburg: Unicode encodings.Guido van Rossum2000-03-101-0/+31