[Python-checkins] CVS: python/dist/src/Doc/ext ext.tex,1.95,1.96

M.-A. Lemburg lemburg@users.sourceforge.net
Wed, 02 May 2001 10:16:18 -0700


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

Modified Files:
	ext.tex 
Log Message:
Added new parser markers 'et' and 'et#' which do not recode string
objects but instead assume that they use the requested encoding.

This is needed on Windows to enable opening files by passing in
Unicode file names.



Index: ext.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/ext.tex,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -r1.95 -r1.96
*** ext.tex	2001/03/19 04:19:56	1.95
--- ext.tex	2001/05/02 17:16:16	1.96
***************
*** 737,740 ****
--- 737,746 ----
  \cfunction{PyMem_Free()} to free the allocated buffer after usage.
  
+ \item[\samp{et} (string, Unicode object or character buffer compatible
+ object) {[const char *encoding, char **buffer]}]
+ Same as \samp{es} except that string objects are passed through without
+ recoding them. Instead, the implementation assumes that the string
+ object uses the encoding passed in as parameter.
+ 
  \item[\samp{es\#} (string, Unicode object or character buffer compatible
  object) {[const char *encoding, char **buffer, int *buffer_length]}]
***************
*** 767,770 ****
--- 773,782 ----
  In both cases, \var{*buffer_length} is set to the length of the
  encoded data without the trailing 0-byte.
+ 
+ \item[\samp{et\#} (string, Unicode object or character buffer compatible
+ object) {[const char *encoding, char **buffer]}]
+ Same as \samp{es\#} except that string objects are passed through without
+ recoding them. Instead, the implementation assumes that the string
+ object uses the encoding passed in as parameter.
  
  \item[\samp{b} (integer) {[char]}]