diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-05 09:03:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-05 09:03:12 (GMT) |
commit | 30b0dabb9b5092b7453ff56eae75c009f30eaa1f (patch) | |
tree | e95abf5ef1adf6677e12d167fb247fc671a8d556 /doc/Encoding.3 | |
parent | 26a830241ea90ce41d6cddc8f2a720f4cc5b2e73 (diff) | |
download | tcl-30b0dabb9b5092b7453ff56eae75c009f30eaa1f.zip tcl-30b0dabb9b5092b7453ff56eae75c009f30eaa1f.tar.gz tcl-30b0dabb9b5092b7453ff56eae75c009f30eaa1f.tar.bz2 |
Improvement: always export both 16-bit and 32-bit UTF function
Diffstat (limited to 'doc/Encoding.3')
-rw-r--r-- | doc/Encoding.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/Encoding.3 b/doc/Encoding.3 index c801f3c..a642281 100644 --- a/doc/Encoding.3 +++ b/doc/Encoding.3 @@ -259,13 +259,13 @@ is filled with the corresponding number of bytes that were stored in convenience functions for converting between UTF-8 and Windows strings based on the TCHAR type which is by convention a Unicode character on Windows NT. Those functions are deprecated. You can use -\fBTcl_UtfToUtf16DString\fR resp. \fBTcl_Utf16ToUtfDString\fR as replacement. +\fBTcl_UtfToWCharDString\fR resp. \fBTcl_WCharToUtfDString\fR as replacement. If you want compatibility with earlier Tcl releases than 8.7, use \fBTcl_UtfToUniCharDString\fR resp. \fBTcl_UniCharToUtfDString\fR as replacement, and make sure you compile your extension with -DTCL_UTF_MAX=3. Beware: Those replacement functions don't initialize their Tcl_DString (you'll have to do that yourself), and \fBTcl_UniCharToUtfDString\fR doesn't accept -1 -as length parameter (but \fBTcl_Utf16ToUtfDString\fR does!). +as length parameter (but \fBTcl_WCharToUtfDString\fR does!). .PP \fBTcl_GetEncodingName\fR is roughly the inverse of \fBTcl_GetEncoding\fR. Given an \fIencoding\fR, the return value is the \fIname\fR argument that |