diff options
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) |