Skip to content
Tcl Source Code Artifact [a6ddf627b4]
Login

Artifact [a6ddf627b4]

Artifact a6ddf627b401fff7652f7d262c59f4faf781fdbc202110c913a398ed40905f99:

Ticket change [a6ddf627b4] - Ticket [27944a3661a5e409|27944a3661] <i>Taming test utf-6.88</i> status still Open with 3 other changes by dgp on 2020-04-22 22:54:11.
D 2020-04-22T22:54:11.040
J icomment \r\nThe\simplementation\sof\sTcl_UtfNext\shas\s***always***\sbeen\r\n\r\nreturn\ssrc\s+\sTcl_UtfToUniChar(src,\s...);\r\n\r\nLogically\sany\sconstraint\son\scalling\sTcl_UtfToUniChar\ssafely\stransfers\sthe\r\nsame\sconstraint\son\scalling\sTcl_UtfNext()\ssafely.\s\sThis\simplementation\shas\salso\r\ntied\stogether\sthe\sfunctionality\sof\sthe\stwo\sroutines\sin\sways\scallers\smay\sexpect.\r\n\r\nThe\soriginal\sTcl_UtfNext()\sdocumentation\sdid\snot\smention\sNUL\stermination.\r\nThat\swording\swas\sadded\sin\scheckin\r\n\r\nhttps://core.tcl-lang.org/tcl/info/5154e4e97b390103\r\n\r\nat\sthe\stime\swhen\sthe\sbehavior\sof\sTcl_UtfPrev\swhen\spassed\sa\strail\sbyte\spointer\r\nwas\strying\sto\sbe\sclarified.\s[769895]\r\n\r\nThe\soriginal\sTcl_UtfNext()\sdocs\sdid\sstate\s"The\scaller\smust\snot\sask\sfor\sthe\snext\r\ncharacter\safter\sthe\slast\scharacter\sin\sthe\sstring"\swith\sno\sexplicit\sdirection\son\show\r\nto\saccomplish\sthat.\sThe\sreader\scould\sreasonably\sinfer\sthe\ssame\ssafety\stool\r\nfor\sTcl_UtfToUniChar\swas\sappropriate\sfor\sthe\sjob.\s\sSomeone\ssource\sdiving\swould\r\nconfirm\sthat\sinference\swas\scorrect.\r\n\r\nBecause\sof\sthe\simplementation\sTcl_UtfNext()\salways\shad,\sit\snever\shad\sthe\sfunction\r\nof\sacting\son\strail\sbytes\sin\sthe\sway\sbeing\ssought\shere.\sNo\scaller\sexpects\sit,\sbecause\r\nit's\snever\sbeen\sthat\sway.\s\s\r\n\r\nI'm\sstill\swilling\sto\sfollow\sthis\sexploration\strail\sfurther\sto\ssee\sif\sthere's\sa\sreasonable\r\nway\sto\sadd\sthis\sextension\sof\sthe\sfunctionality\sconsistent\swith\sthe\sother\sexpectations.
J login dgp
J mimetype text/plain
K 27944a3661a5e409dead945dbc8f9e4a50033e62
U dgp
Z 24b5a81acbfa3796b561f287c28692d2