diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-08-17 16:23:21 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-08-17 16:23:21 (GMT) |
commit | 19e62387b9bd70fb4f3212db55872454f903229e (patch) | |
tree | 20bac6c465ef21215733e99a08cdce04cd364ef7 /Lib/encodings/utf_32.py | |
parent | 8d991ed2e1bbb2b4f25d01eae82c5123c168aa6d (diff) | |
download | cpython-19e62387b9bd70fb4f3212db55872454f903229e.zip cpython-19e62387b9bd70fb4f3212db55872454f903229e.tar.gz cpython-19e62387b9bd70fb4f3212db55872454f903229e.tar.bz2 |
Fix stupid typo in Lib/encodings/utf_32.py which led to failing tests
on big endian machines.
Update documentation: UTF-32 codecs will be in 2.6.
Diffstat (limited to 'Lib/encodings/utf_32.py')
-rw-r--r-- | Lib/encodings/utf_32.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/utf_32.py b/Lib/encodings/utf_32.py index 622f84b..4bbd22a 100644 --- a/Lib/encodings/utf_32.py +++ b/Lib/encodings/utf_32.py @@ -125,7 +125,7 @@ class StreamReader(codecs.StreamReader): if byteorder == -1: self.decode = codecs.utf_32_le_decode elif byteorder == 1: - self.decode = codecs.utf_32_le_decode + self.decode = codecs.utf_32_be_decode elif consumed>=4: raise UnicodeError,"UTF-32 stream does not start with BOM" return (object, consumed) |