Artifact 016c0508925529c2687d70b2fabe1d3c527ee6db8ecbf16dd88b4d4e288a64f1:
- File generic/tclUtf.c — part of check-in [1d9487bc7e] at 2020-05-01 14:20:21 on branch core-8-branch — Fix first part of [ed29806baf]: Tcl_UtfToUniChar reads more than TCL_UTF_MAX bytes. Tcl_UtfToUniChar() now never reads more than TCL_UTF_MAX bytes any more. Since the UtfToUtf encoder/decoder now uses TclUtfToUCS4() it doesn't join 2 surrogates as 2 x 3-byte sequences any more. Actually, it shouldn't, because such sequences are invalid UTF-8. Therefore, added the ucs2 constraint to testcase encoding-15.4. Let's see how TIP #573 goes, this TIP should make this change official. Other callers of Tcl_UtfToUniChar() needs to be revised for the same problem. Most callers will need to change Tcl_UtfToUniChar() -> TclUtfToUCS4() and Tcl_UtfCharComplete() -> TclUCS4Complete(), but that's not done yet. (user: jan.nijtmans size: 64704) [more...]
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.