[Python-checkins] r55095 - python/branches/release25-maint/Doc/api/concrete.tex

walter.doerwald python-checkins at python.org
Thu May 3 17:16:21 CEST 2007


Author: walter.doerwald
Date: Thu May 3 17:16:16 2007
New Revision: 55095
Modified:
 python/branches/release25-maint/Doc/api/concrete.tex
Log:
Backport checkin:
Clarify the behaviour of PyUnicode_DecodeUTF16(): A BOM is only skipped
in native order mode, and only if it's the first two bytes.
Modified: python/branches/release25-maint/Doc/api/concrete.tex
==============================================================================
--- python/branches/release25-maint/Doc/api/concrete.tex	(original)
+++ python/branches/release25-maint/Doc/api/concrete.tex	Thu May 3 17:16:16 2007
@@ -1173,10 +1173,10 @@
 *byteorder == 1: big endian
 \end{verbatim}
 
- and then switches according to all byte order marks (BOM) it finds
- in the input data. BOMs are not copied into the resulting Unicode
- string. After completion, \var{*byteorder} is set to the current
- byte order at the end of input data.
+ and then switches if the first two bytes of the input data are a byte order
+ mark (BOM) and the specified byte order is native order. This BOM is not
+ copied into the resulting Unicode string. After completion, \var{*byteorder}
+ is set to the current byte order at the.
 
 If \var{byteorder} is \NULL{}, the codec starts in native order mode.
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /