[Python-checkins] python/dist/src/Doc/api concrete.tex, 1.42,
1.43 utilities.tex, 1.12, 1.13
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Thu Jun 3 05:55:30 EDT 2004
Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23372
Modified Files:
concrete.tex utilities.tex
Log Message:
Drop claims that Unicode always means UCS-2. Fixes #881861.
Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** concrete.tex 2 Jun 2004 16:49:07 -0000 1.42
--- concrete.tex 3 Jun 2004 09:55:27 -0000 1.43
***************
*** 1110,1116 ****
is prepended.
! Note that \ctype{Py_UNICODE} data is being interpreted as UTF-16
! reduced to UCS-2. This trick makes it possible to add full UTF-16
! capabilities at a later point without comprimising the APIs.
Returns \NULL{} if an exception was raised by the codec.
--- 1110,1117 ----
is prepended.
! If \var{Py_UNICODE_WIDE} is defined, a single \ctype{Py_UNICODE}
! value may get represented as a surrogate pair. If it is not
! defined, each \ctype{Py_UNICODE} values is interpreted as an
! UCS-2 character.
Returns \NULL{} if an exception was raised by the codec.
Index: utilities.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/utilities.tex,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** utilities.tex 4 May 2004 19:25:56 -0000 1.12
--- utilities.tex 3 Jun 2004 09:55:28 -0000 1.13
***************
*** 781,792 ****
\item[\samp{u} (Unicode string) {[Py_UNICODE *]}]
! Convert a null-terminated buffer of Unicode (UCS-2) data to a
! Python Unicode object. If the Unicode buffer pointer is \NULL,
! \code{None} is returned.
\item[\samp{u\#} (Unicode string) {[Py_UNICODE *, int]}]
! Convert a Unicode (UCS-2) data buffer and its length to a Python
! Unicode object. If the Unicode buffer pointer is \NULL, the
! length is ignored and \code{None} is returned.
\item[\samp{i} (integer) {[int]}]
--- 781,792 ----
\item[\samp{u} (Unicode string) {[Py_UNICODE *]}]
! Convert a null-terminated buffer of Unicode (UCS-2 or UCS-4)
! data to a Python Unicode object. If the Unicode buffer pointer
! is \NULL, \code{None} is returned.
\item[\samp{u\#} (Unicode string) {[Py_UNICODE *, int]}]
! Convert a Unicode (UCS-2 or UCS-4) data buffer and its length
! to a Python Unicode object. If the Unicode buffer pointer
! is \NULL, the length is ignored and \code{None} is returned.
\item[\samp{i} (integer) {[int]}]
More information about the Python-checkins
mailing list