<i>Tcl_UtfNext incompatibility in Tcl 8.6.10</i> status still Open with 3 other changes
by
.
D 2020-04-16T21:14:12.306
J icomment \r\nGiven\sthe\sinterface\srestriction,\swhen\sTcl_UtfNext\sgets\sthe\sargument\ssrc,\r\nit\scannot\sknow\swhether\sit\sis\ssafe\sto\sattempt\sto\sread\ssrc[-1].\r\n\r\nIf\ssrc\spoints\sto\sa\strail\sbyte,\sand\swe\scannot\sread\ssrc[-1]\sand\sso\son,\sthere's\r\nno\sway\sto\sknow\swhether\swe're\son\sthe\s2d\sor\s3d\sor\s4th\strail\sbyte\sor\sjust\r\npointing\sto\ssome\smalformed\sgarbage\swe\sstill\shaven't\sfully\soutlawed.\r\n\r\nEither\swe\sdo\sthe\sminimal\sthing\swhich\sis\sstep\sone\sbyte\sforward\salways,\s(current\sanswer,\r\nand\sthe\sanswer\swe've\shad\sin\splace\sfor\s20\syears)\r\nor\salternatively\swe\scould\sscan\sforward\sup\sto\sTCL_UTF_MAX-1\sbytes\sand\r\nseek\sout\sthe\sfirst\snon-trail\sbyte,\swhich\swould\smake\sthe\snew\stest\shappier,\r\nbut\smight\sintroduce\ssome\ssynchronization\stroubles\swith\sother\sassumptions.
J login dgp
J mimetype text/plain
K 1b1f5f0b53e243d444628c8f414ea9664b5be44f
U dgp
Z fea5c4358e0c69c919a418e3c0691999