summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-11 12:41:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-11 12:41:00 (GMT)
commitf8474f319cd5f760b58a607747e8c5d35443db8d (patch)
tree4aecd51b21b655d1cffe1415c333a01574ef0729 /generic/tcl.h
parent81d54e6432bebe955c9fe5ef6bd4445e3e246d53 (diff)
downloadtcl-f8474f319cd5f760b58a607747e8c5d35443db8d.zip
tcl-f8474f319cd5f760b58a607747e8c5d35443db8d.tar.gz
tcl-f8474f319cd5f760b58a607747e8c5d35443db8d.tar.bz2
Implement "panic" as described in the TIP
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 8521041..1a70ae4 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -2106,12 +2106,11 @@ typedef struct Tcl_EncodingType {
/*
* The maximum number of bytes that are necessary to represent a single
- * Unicode character in UTF-8. The valid values are 4 and 6
- * (or perhaps 1 if we want to support a non-unicode enabled core). If 4,
- * then Tcl_UniChar must be 2-bytes in size (UCS-2) (the default). If 6,
+ * Unicode character in UTF-8. The valid values are 3 and 4
+ * (or perhaps 1 if we want to support a non-unicode enabled core). If 3,
+ * then Tcl_UniChar must be 2-bytes in size (UCS-2) (the default). If > 3,
* then Tcl_UniChar must be 4-bytes in size (UCS-4). At this time UCS-2 mode
- * is the default and recommended mode. UCS-4 is experimental and not
- * recommended. It works for the core, but most extensions expect UCS-2.
+ * is the default and recommended mode.
*/
#ifndef TCL_UTF_MAX
@@ -2126,12 +2125,8 @@ typedef struct Tcl_EncodingType {
#if TCL_UTF_MAX > 3
/*
* int isn't 100% accurate as it should be a strict 4-byte value
- * (perhaps wchar_t). 64-bit systems may have troubles. The size of this
- * value must be reflected correctly in regcustom.h and
- * in tclEncoding.c.
- * XXX: Tcl is currently UCS-2 and planning UTF-16 for the Unicode
- * XXX: string rep that Tcl_UniChar represents. Changing the size
- * XXX: of Tcl_UniChar is /not/ supported.
+ * (perhaps wchar_t). ILP64/SILP64 systems may have troubles. The
+ * size of this value must be reflected correctly in regcustom.h.
*/
typedef int Tcl_UniChar;
#else