[Python-checkins] python/dist/src/Doc/api concrete.tex,1.57,1.58
lemburg at users.sourceforge.net
lemburg at users.sourceforge.net
Mon Nov 22 14:02:34 CET 2004
Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv780/Doc/api
Modified Files:
concrete.tex
Log Message:
Correct the handling of 0-termination of PyUnicode_AsWideChar()
and its usage in PyLocale_strcoll().
Clarify the documentation on this.
Thanks to Andreas Degert for pointing this out.
Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- concrete.tex 29 Sep 2004 21:39:26 -0000 1.57
+++ concrete.tex 22 Nov 2004 13:02:31 -0000 1.58
@@ -995,9 +995,13 @@
wchar_t *w,
int size}
Copies the Unicode object contents into the \ctype{wchar_t} buffer
- \var{w}. At most \var{size} \ctype{wchar_t} characters are copied.
- Returns the number of \ctype{wchar_t} characters copied or -1 in
- case of an error.
+ \var{w}. At most \var{size} \ctype{wchar_t} characters are copied
+ (excluding a possibly trailing 0-termination character). Returns
+ the number of \ctype{wchar_t} characters copied or -1 in case of an
+ error. Note that the resulting \ctype{wchar_t} string may or may
+ not be 0-terminated. It is the responsibility of the caller to make
+ sure that the \ctype{wchar_t} string is 0-terminated in case this is
+ required by the application.
\end{cfuncdesc}
More information about the Python-checkins
mailing list