diff options
author | Walter Dörwald <walter@livinglogic.de> | 2002-06-04 15:16:29 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2002-06-04 15:16:29 (GMT) |
commit | 474458da4894b542ff63fb8eaafeaefad7744005 (patch) | |
tree | 6fdffec2184e0680da735a75281529ec429a7267 /Doc/lib/libcodecs.tex | |
parent | bc48826dc2fdcf53a837dbf6c35eff4ab69d08bf (diff) | |
download | cpython-474458da4894b542ff63fb8eaafeaefad7744005.zip cpython-474458da4894b542ff63fb8eaafeaefad7744005.tar.gz cpython-474458da4894b542ff63fb8eaafeaefad7744005.tar.bz2 |
Add constants BOM_UTF8, BOM_UTF16, BOM_UTF16_LE, BOM_UTF16_BE,
BOM_UTF32, BOM_UTF32_LE and BOM_UTF32_BE that represent the Byte
Order Mark in UTF-8, UTF-16 and UTF-32 encodings for little and
big endian systems.
The old names BOM32_* and BOM64_* were off by a factor of 2.
This closes SF bug http://www.python.org/sf/555360
Diffstat (limited to 'Doc/lib/libcodecs.tex')
-rw-r--r-- | Doc/lib/libcodecs.tex | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Doc/lib/libcodecs.tex b/Doc/lib/libcodecs.tex index 9f77955..136c528 100644 --- a/Doc/lib/libcodecs.tex +++ b/Doc/lib/libcodecs.tex @@ -142,16 +142,21 @@ for reading and writing to platform dependent files: \begin{datadesc}{BOM} \dataline{BOM_BE} \dataline{BOM_LE} -\dataline{BOM32_BE} -\dataline{BOM32_LE} -\dataline{BOM64_BE} -\dataline{BOM64_LE} -These constants define the byte order marks (BOM) used in data -streams to indicate the byte order used in the stream or file. -\constant{BOM} is either \constant{BOM_BE} or \constant{BOM_LE} -depending on the platform's native byte order, while the others -represent big endian (\samp{_BE} suffix) and little endian -(\samp{_LE} suffix) byte order using 32-bit and 64-bit encodings. +\dataline{BOM_UTF8} +\dataline{BOM_UTF16} +\dataline{BOM_UTF16_BE} +\dataline{BOM_UTF16_LE} +\dataline{BOM_UTF32} +\dataline{BOM_UTF32_BE} +\dataline{BOM_UTF32_LE} +These constants define various encodings of the Unicode byte order mark +(BOM) used in UTF-16 and UTF-32 data streams to indicate the byte order +used in the stream or file and in UTF-8 as a Unicode signature. +\constant{BOM_UTF16} is either \constant{BOM_UTF16_BE} or +\constant{BOM_UTF16_LE} depending on the platform's native byte order, +\constant{BOM} is an alias for \constant{BOM_UTF16}, \constant{BOM_LE} +for \constant{BOM_UTF16_LE} and \constant{BOM_BE} for \constant{BOM_UTF16_BE}. +The others represent the BOM in UTF-8 and UTF-32 encodings. \end{datadesc} |