summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-17 16:55:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-17 16:55:15 (GMT)
commit53d12d3930011aaaa6eb3bfb2b1e987d431e65d2 (patch)
treefe28d382d1e7140eeb096fd61b987f8b8411ccf2 /generic/tcl.h
parent7056164cd356e6aed9a9290471a7029c35a606f5 (diff)
parent21c68a2e1d7a0c5a9b78091d5dffd972a01dede8 (diff)
downloadtcl-53d12d3930011aaaa6eb3bfb2b1e987d431e65d2.zip
tcl-53d12d3930011aaaa6eb3bfb2b1e987d431e65d2.tar.gz
tcl-53d12d3930011aaaa6eb3bfb2b1e987d431e65d2.tar.bz2
Eliminate usage of TCL_ENCODING_STOPONERROR flag, since in Tcl 9.0 is has no meaning any more
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 766259d..78f2d57 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -1860,14 +1860,7 @@ typedef struct Tcl_EncodingType {
* reset to an initial state. If the source
* buffer contains the entire input stream to be
* converted, this flag should be set.
- * TCL_ENCODING_STOPONERROR - If set, the converter returns immediately upon
- * encountering an invalid byte sequence or a
- * source character that has no mapping in the
- * target encoding. If clear, the converter
- * substitutes the problematic character(s) with
- * one or more "close" characters in the
- * destination buffer and then continues to
- * convert the source. Only for Tcl 8.x.
+ * TCL_ENCODING_STOPONERROR - Not used any more.
* TCL_ENCODING_NO_TERMINATE - If set, Tcl_ExternalToUtf does not append a
* terminating NUL byte. Since it does not need
* an extra byte for a terminating NUL, it fills
@@ -1898,7 +1891,7 @@ typedef struct Tcl_EncodingType {
#define TCL_ENCODING_START 0x01
#define TCL_ENCODING_END 0x02
-#define TCL_ENCODING_STOPONERROR 0x04
+#define TCL_ENCODING_STOPONERROR 0x0 /* Not used any more */
#define TCL_ENCODING_NO_TERMINATE 0x08
#define TCL_ENCODING_CHAR_LIMIT 0x10
#define TCL_ENCODING_MODIFIED 0x20
@@ -1924,12 +1917,12 @@ typedef struct Tcl_EncodingType {
* character sequence. This may occur if the
* input stream has been damaged or if the input
* encoding method was misidentified. This error
- * is reported only if TCL_ENCODING_STOPONERROR
+ * is reported unless if TCL_ENCODING_NOCOMPLAIN
* was specified.
* TCL_CONVERT_UNKNOWN - The source string contained a character that
* could not be represented in the target
- * encoding. This error is reported only if
- * TCL_ENCODING_STOPONERROR was specified.
+ * encoding. This error is reported unless if
+ * TCL_ENCODING_NOCOMPLAIN was specified.
*/
#define TCL_CONVERT_MULTIBYTE (-1)