diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-24 19:54:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-24 19:54:12 (GMT) |
commit | 0bc7f33a5c2ca762088b45eb22e5931dc4c7e53d (patch) | |
tree | d2e4038ce4ea7d3bfc3f00489d372cc09169a857 /generic/tkInt.h | |
parent | a0302065fdc6fa925efad2d4b1a705d173207eb7 (diff) | |
download | tk-0bc7f33a5c2ca762088b45eb22e5931dc4c7e53d.zip tk-0bc7f33a5c2ca762088b45eb22e5931dc4c7e53d.tar.gz tk-0bc7f33a5c2ca762088b45eb22e5931dc4c7e53d.tar.bz2 |
Whenever searching fonts with Tcl_UtfToExternal(... TCL_ENCODING_STOPONERROR ..), specify TCL_ENCODING_STRICT too: We already know that Surrogates don't have graphical representtation, so we can stop early
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r-- | generic/tkInt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h index c146789..d2b7ebb 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -88,6 +88,11 @@ # define TKFLEXARRAY 1 #endif +#if (TCL_MAJOR_VERSION < 9) && (TCL_MINOR_VERSION < 7) +# define TCL_ENCODING_STRICT 0x44 +#endif + + #if TCL_MAJOR_VERSION < 9 # undef Tcl_ExternalToUtfDStringEx # undef Tcl_UtfToExternalDStringEx |