diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-30 11:26:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-30 11:26:36 (GMT) |
commit | 664b7500abd51bfa6257c7e3e8fc5846d18d522b (patch) | |
tree | 80d9a3db6f30221321687209d4320cdb9649246b /generic/tcl.h | |
parent | 42b07af6c35e293f6f7ecdf76ca84495f67b87e4 (diff) | |
download | tcl-664b7500abd51bfa6257c7e3e8fc5846d18d522b.zip tcl-664b7500abd51bfa6257c7e3e8fc5846d18d522b.tar.gz tcl-664b7500abd51bfa6257c7e3e8fc5846d18d522b.tar.bz2 |
Add documentation. Do a better job of counting exactly which byte/character caused the encoding/decoding error
Diffstat (limited to 'generic/tcl.h')
-rw-r--r-- | generic/tcl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index 38dda28..f783f4f 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -2069,6 +2069,10 @@ typedef struct Tcl_EncodingType { * content. Otherwise, the number of chars * produced is controlled only by other limiting * factors. + * TCL_ENCODING_MODIFIED - Convert NULL bytes to \xC0\x80 in stead of + * 0x00. Only valid for "utf-8", "wtf-8 and "cesu-8". + * This flag is implicit for external -> internal conversions, + * optional for internal -> external conversions. */ #define TCL_ENCODING_START 0x01 @@ -2076,6 +2080,7 @@ typedef struct Tcl_EncodingType { #define TCL_ENCODING_STOPONERROR 0x04 #define TCL_ENCODING_NO_TERMINATE 0x08 #define TCL_ENCODING_CHAR_LIMIT 0x10 +#define TCL_ENCODING_MODIFIED 0x20 /* * The following definitions are the error codes returned by the conversion |