Skip to content
Tcl Source Code Artifact [a437cb45d4]
Login

Artifact [a437cb45d4]

Artifact a437cb45d4c96bd8f6e252ed5d52bce169cec1018d982d9df15720145c45562f:

Ticket change [a437cb45d4] - Ticket [f443140a8547b6f6|f443140a85] <i>connection between Tcl_UtfNext/Tcl_UtfPrev and Tcl_UtfCharComplete()</i> status still Open with 3 other changes by jan.nijtmans on 2020-04-28 10:15:38.
D 2020-04-28T10:15:38.602
J icomment Thinking\sabout\sit,\sTcl_UtfPrev()\sshould\s-\swhenever\spossible\sdo\sto\sother\srestrictions\s-\sreturn\sa\spointer\sto\sthe\sfirst\sbyte\sof\sthe\ssequence.\sIf\sTCL_UTF_MAX=3\sand\sTcl_UtfPrev()\sencounters\s3\strail-bytes,\swe\shave\sthe\srestriction\sthat\sTcl_UtfPrev()\scannot\sjump\smore\sthat\sTCL_UTF_MAX\sbytes.\sSo,\sthen\sit\swill\sjump\sTCL_UTF_MAX\sbytes,\sand\sanother\scall\sto\sTcl_UtfPrev()\swill\sbe\sneeded\sto\sget\sin\ssync\swith\sthe\sbyte\ssequence\sagain.\sSomething\slike\sthat\sshould\sbe\sdocumented.\r\n\r\nWell,\saccepting\sthe\s(possible)\sdescription\sabove,\sthere\sare\s10\stest-cases\sviolating\sthat.\sThose\sare:\r\n\r\n\s\s\s*\sutf-7.10.0\r\n\r\n\s\s\s*\sutf-7.10.2\r\n\r\n\s\s\s*\sutf-7.10.4\r\n\r\n\s\s\s*\sutf-7.15.0\r\n\r\n\s\s\s*\sutf-7.15.2\r\n\r\n\s\s\s*\sutf-7.15.4\r\n\r\n\s\s\s*\sutf-7.40.0\r\n\r\n\s\s\s*\sutf-7.41.0\r\n\r\n\s\s\s*\sutf-7.48.2\r\n\r\n\s\s\s*\sutf-7.48.4\r\n\r\nAll\sof\sthose\sinvolve\svalid\s4-byte\ssequences\swhere\sthe\spointer\sis\snot\son\sa\scharacter\sborder.\r\n\r\nSo,\sstill\swork\sto\sdo\sto\sfix\sthis.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K f443140a8547b6f6d70c51a6bbf742e72dca0ca8
U jan.nijtmans
Z 50420cee790ec221bd5e7a5f0f05a094