[Python-checkins] python/dist/src/Doc/lib libcodecs.tex,1.9,1.10

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
Tue, 04 Jun 2002 08:16:32 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv26774/Doc/lib

Modified Files:
	libcodecs.tex 
Log Message:
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


Index: libcodecs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcodecs.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** libcodecs.tex	17 Apr 2002 19:33:06 -0000	1.9
--- libcodecs.tex	4 Jun 2002 15:16:29 -0000	1.10
***************
*** 143,156 ****
  \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.
  \end{datadesc}
  
--- 143,161 ----
  \dataline{BOM_BE}
  \dataline{BOM_LE}
! \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}