summaryrefslogtreecommitdiffstats
path: root/doc/Utf.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-19 20:17:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-19 20:17:01 (GMT)
commitbe2eb79067e63e0345d94834e85f6f7ecf659625 (patch)
treec4d124aeabc00a9b783dbe865fb4863df753117e /doc/Utf.3
parenta3632778ce4707fa88124136b1fa8f078b7eff1c (diff)
parentb752d879c75b2b284c39120f000ad906c7506b87 (diff)
downloadtcl-be2eb79067e63e0345d94834e85f6f7ecf659625.zip
tcl-be2eb79067e63e0345d94834e85f6f7ecf659625.tar.gz
tcl-be2eb79067e63e0345d94834e85f6f7ecf659625.tar.bz2
Merge 8.7
Diffstat (limited to 'doc/Utf.3')
-rw-r--r--doc/Utf.32
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/Utf.3 b/doc/Utf.3
index 3bb285e..3ae5c0e 100644
--- a/doc/Utf.3
+++ b/doc/Utf.3
@@ -129,7 +129,7 @@ represent one Unicode character in the UTF-8 representation.
.PP
\fBTcl_UniCharToUtf\fR stores the character \fIch\fR as a UTF-8 string
in starting at \fIbuf\fR. The return value is the number of bytes stored
-in \fIbuf\fR. If ch is an upper surrogate (range U+D800 - U+DBFF), then
+in \fIbuf\fR. If ch is a high surrogate (range U+D800 - U+DBFF), then
the return value will be 0 and nothing will be stored. If you still
want to produce UTF-8 output for it (even though knowing it's an illegal
code-point on its own), just call \fBTcl_UniCharToUtf\fR again using ch = -1.