summaryrefslogtreecommitdiffstats
path: root/Lib/encodings
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-08-17 16:23:21 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-08-17 16:23:21 (GMT)
commit19e62387b9bd70fb4f3212db55872454f903229e (patch)
tree20bac6c465ef21215733e99a08cdce04cd364ef7 /Lib/encodings
parent8d991ed2e1bbb2b4f25d01eae82c5123c168aa6d (diff)
downloadcpython-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')
-rw-r--r--Lib/encodings/utf_32.py2
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)