summaryrefslogtreecommitdiffstats
path: root/doc/StringObj.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-01 09:21:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-01 09:21:42 (GMT)
commit19d9008e3156868770dc908cbd835e596dc744a5 (patch)
tree0e6c0ae45b0ab62136a505a1aef6d9715c9158d0 /doc/StringObj.3
parent14ce0e744beea32d9c67f2af576bf3e10cdeaa7e (diff)
parent4d8f46acdb3620b30c180b26aec6ea51a3b404a6 (diff)
downloadtcl-19d9008e3156868770dc908cbd835e596dc744a5.zip
tcl-19d9008e3156868770dc908cbd835e596dc744a5.tar.gz
tcl-19d9008e3156868770dc908cbd835e596dc744a5.tar.bz2
Merge 8.7, but update for TIP #476
Diffstat (limited to 'doc/StringObj.3')
-rw-r--r--doc/StringObj.37
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/StringObj.3 b/doc/StringObj.3
index 6f2abff..65216d3 100644
--- a/doc/StringObj.3
+++ b/doc/StringObj.3
@@ -320,8 +320,11 @@ sprintf(buf, format, ...);
but with greater convenience and no need to
determine \fBSOME_SUITABLE_LENGTH\fR. The formatting is done with the same
core formatting engine used by \fBTcl_Format\fR. This means the set of
-supported conversion specifiers is that of the \fBformat\fR command and
-not that of the \fBsprintf\fR routine where the two sets differ. When a
+supported conversion specifiers is that of the \fBformat\fR command but
+the behavior is as similar as possible to \fBsprintf\fR. The "hh" and
+(Microsoft-specific) "w" format specifiers are not supported. The "L"
+format specifier means that an "mp_int *" argument is expected (in combination
+with "d"/"i"/"u"/"o"/"x"/"X", it cannot be used for long doubles). When a
conversion specifier passed to \fBTcl_ObjPrintf\fR includes a precision,
the value is taken as a number of bytes, as \fBsprintf\fR does, and not
as a number of characters, as \fBformat\fR does. This is done on the