summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-01 19:42:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-01 19:42:53 (GMT)
commit190852002f644f02a6e13c6a7c9017c3f21e1003 (patch)
treebed7c42f0cd850e442f6cc56d59c3b6b5efe258a /generic/tclParse.c
parent6c4b78cfa8c06ea5963591778902da74850d1985 (diff)
downloadtcl-190852002f644f02a6e13c6a7c9017c3f21e1003.zip
tcl-190852002f644f02a6e13c6a7c9017c3f21e1003.tar.gz
tcl-190852002f644f02a6e13c6a7c9017c3f21e1003.tar.bz2
Remove internal use of TCL_UTF_MAX=3 as much as possible, without compromizing existing TIP's
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index 5ee1a9f..aab69f3 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -936,13 +936,13 @@ TclParseBackslash(
*/
if (Tcl_UtfCharComplete(p, numBytes - 1)) {
- count = TclUtfToUCS4(p, &unichar) + 1; /* +1 for '\' */
+ count = Tcl_UtfToUniChar(p, &unichar) + 1; /* +1 for '\' */
} else {
char utfBytes[8];
memcpy(utfBytes, p, numBytes - 1);
utfBytes[numBytes - 1] = '\0';
- count = TclUtfToUCS4(utfBytes, &unichar) + 1;
+ count = Tcl_UtfToUniChar(utfBytes, &unichar) + 1;
}
result = unichar;
break;