.
D 2020-04-24T12:38:42.320
J icomment \r\nI\sagree\sthat\sthe\splainest\sreading\sof\sthe\sexisting\sdocs\sfor\sTcl_UtNext\ssuggests\r\nthat\sthe\sbehavior\srequested\sin\sthis\sticket\sshould\sbe\sexpected.\sBut\sit\shas\snever\r\nbeen\spresent.\sNo\sexisting\scallers\sexpect\sit,\sand\sno\sticket\shas\sever\sbeen\sfiled\sasking\r\nfor\sit\sout\sof\sa\sprogramming\sneed.\sWe\sare\sonly\sdoing\sit\snow\sout\sof\sa\sdesire\sto\smake\r\nthe\scode\sand\sdocumentation\smatch.\s\sI\sthink\sthe\sbetter\soption\sis\sto\schange\sthe\r\ndocumentation\sso\sit\smore\sclearly\sdescribes\swhat\sthe\sroutine\sdoes.\r\n\r\n(If\sa\sprogrammer\shas\sa\spointer\she\ssuspects\spoints\sto\sthe\smiddle\sof\sa\ssequence,\r\nhe\scan\sfirst\spass\sit\sto\sTcl_UtfPrev,\swhich\swill\sreturn\sa\snew\spointer\sknown\sto\spoint\sto\r\na\scharacter\sstart.\s\sCalling\sTcl_UtfNext\son\sthat\swill\sdeliver\sthe\soverall\sfunctionality\ssought.)\r\n\r\nContrast\swith\sthe\scoupling\sof\sTcl_UtfNext\sand\sTcl_UtfToUniChar\swhich\shas\sbeen\r\nin\splace\sin\sthe\smost\sdirect\sway\s--\simplementing\sone\sin\sterms\sof\sthe\sother\s--\sand\r\nwhich\sunderlies\sthe\sconsistency\sof\sindexing\sthat\sit\sis\smuch\smore\splausible\sto\simagine\r\nexisting\sprograms\srelying\son.\r\n\r\nThe\sneed\sfor\sTcl_UtfToUniChar\sto\schange\sto\ssatisfy\sTIP\s389\screates\sa\snew\ssituation\r\nin\sTcl\s8.7.\s\sThe\sincompatibilities\shave\sbeen\sapproved\sby\sthe\sTIP\sat\sleast\simplicitly.\r\nThe\sclarity\sof\scalling\sattention\sto\sthem\smight\sneed\ssome\simprovement.\s\sIn\sthe\scurrent\r\nimplementation\sof\s8.7,\sthe\sdocumented\sconnection\sbetween\sTcl_UtfNext\sand\r\nTcl_UtfAtIndex\shas\sbeen\sbroken.\s\sI\sintend\sto\sexplore\ssome\salternatives\sin\sa\r\nbranch\sthat\smight\sre-couple\sUtfNext\sand\sUtfToUniChar.\sI'll\sopen\sa\snew\sticket\sto\strack\r\nthat,\sand\skeep\sit\soff\sthe\s8.7\sbranch\suntil\sit\sgets\ssome\sreview.\s\r\n\r\nMeanwhile\sI\sthink\sthe\scollection\sof\snew\stests\shas\sbeen\shelpful\sin\suncovering\sbugs,\r\nand\swe\scan\sbring\sthose\stests\sforward,\sadjust\swhere\sappropriate,\sand\smake\sfixes\r\nfor\sthem.
J login dgp
J mimetype text/plain
K 27944a3661a5e409dead945dbc8f9e4a50033e62
U dgp
Z ffdc558747d34ce2ca3b4d388fc618e6