Skip to content
Tcl Source Code Artifact [5fb83ff329]
Login

Artifact [5fb83ff329]

Artifact 5fb83ff329004536dda80bb46691d6af0705263e145d810f135be62f3a3ba88e:

Ticket change [5fb83ff329] - Ticket [b8f575aa2398b0e4|b8f575aa23] <i>Tcl 9: eof erroneously flagged with not reported encoding read error</i> status still Pending with 3 other changes by pointsman on 2023-02-21 20:57:52.
D 2023-02-21T20:57:52.964
J icomment Jan,\r\n\r\nif\sthis\sisn't\sthe\sright\splace\sto\sdiscuss\sthis\scould\syou\skindly\stell\sme\swhat\sis\sthe\sright\splace?\sYou\sparticipated\sonly\ssparly\son\sthe\srelated\sdisussions\son\sthe\stcl-core\smailing\slist.\r\n\r\nYour\sarguments\sin\sthis\sticket\sat\s2023-02-17\s08:53:35\sare\sabout\swhy\syou\srefused\sto\saccept\spooryoricks\spatch.\r\n\r\nAs\sAshok\sI\salready\stried\sto\sdiscuss\sthe\squestion\shere\son\sa\shigher\slevel:\sDo\syou\sthink\sthe\scurrent\strunk\sbehaviour\s([read]\sand\s[gets]\snot\srasing\serror\son\sencoding\serror)\sis\sbetter\sthan\sraising\serror?\sThen\sI\swould\slove\sto\sread\s(or\shear)\syour\sarguments\sabout\sthat.\r\n\r\nOn\sthe\sformal\sside\sI\sthink\scurrent\strunk\sis\sa\schanged\sscript\slevel\sbehaviour\swhich\sisn't\sspelled\sout\sin\sa\sTIP.\sAt\sleast\sI\sasked\sseveral\stimes\sfor\sthe\sTIP\sdescriping\sthe\snew\schanced\s[read]\sand\s[gets]\sbehaviour\swithout\san\sanswer\sand\smy\sown\ssearch\sin\sthe\srelated\sTIPs\srevealed\ssomething.\r\n\r\nSo\sperhaps\sthis\sshould\sbe\smade\sup;\sas\sTCT\smember\syour\sin\sthe\sright\sposition\sto\scall\sa\svote\son\sthis.\r\n\r\nI'm\snot\sso\smuch\sinterested\sin\sthis\sformal\sside\sbut\sto\sfind\sthe\sbest\ssolution\sfor\sTcl\s9.\sThe\smajor\spoints\swhy\sI\sthink\sraising\serror\son\sencoding\serror\swould\sbe\sthe\sbetter\ssemantics\sare:\r\n\r\n-\sIt\sseems\sto\sme\slesser\ssurprising,\sboth\sto\slong-time\sTclers\sas\swell\sas\sto\sprogrammers\scomming\sfrom\sother\slanguages\sto\sTcl\s(or\sworking\smost\sof\stheir\stime\swith\sother\slanguages.)\r\n\r\n-\sIn\sthe\svast\smajority\sof\scases\san\sencoding\serror\son\sthe\schannel\swill\sjust\sbe\shandled\sin\saborting\sthe\saction\swith\snotice\sto\sthe\suser\sabout\sthat.\sIt\sseems\snatural\sto\swrap\sa\scommand\swhich\smay\sfail\sto\sdo\swhat\sit\swas\stold\sto\sdo\sinto\sa\scatch\sor\stry.\r\n\r\n-\sI\sagree\sthat\sthere\sare\s(rare)\sadvanced\scases\sin\swhich\sone\swant\sto\shave\sthe\salready\sdecoded\sdata\sor\seven\ssomehow\sto\srecover\sfrom\sthe\sencoding\serror\s(although\sI\sonly\shave\sso\sfar\san\sonly\svague\spicture\sand\ssome\squestions\sabout\show\sthis\sshould\swork\sin\sa\ssensible\sway).\sBut\sI\sdon't\ssee\shard\stechnical\sreason\swhich\swould\smake\sthis\simpossible\swith\s[read]\sand\s[gets]\sraising\s(immediately)\serror.\sThe\sdecoded\sdata\scan\sbe\sreturned\sin\sthe\serror\sdict\sand\sthe\schannel\sis\sstill\sopen,\safter\sthe\serror\sand\sthe\schannel\sposition\s(what\s[tell]\swould\sreturn)\scould\sbe\sat\sthe\ssame\saccess\sposition\sas\sin\sthe\scurrent\strunk\smodel.\r\n\r\n-\sIt\sprovides\sthe\smore\sdefensively\smigration\spart.\sIf\ssomebody\sadds\s-strictencoding\sto\sits\sscripts\swith\sTcl\s9\sbut\sforget\s(or\sjust\snot\srealize)\sto\sadd\sthe\snecessary\scode\sto\sits\sread\sthe\sscript\swill\shappily\swork\swithout\ssign\sof\serror\swith\scurrent\strunk,\sbut\sproduce\swrong\sresults.\sIf\sthe\scommands\sraise\s(an\suncatched,\sin\sthis\sexample\sscenario)\serror\sthe\sscript\swill\sbail\sout.\sWhich\sseems\sto\sbe\sthe\sbetter\sbehaviour\sin\smy\sbook.\r\n\r\nI\sstop\shere,\sleaving\sout\sa\sfew\sother\sconsiderations.\r\n\r\nWe\sshould\stry\sto\sfind\sconsent\sabout\sthe\s[read]\sand\s[gets]\ssemantic\sfor\sTcl\s9.\sIf\swe\ssucced\swith\sthat\sthe\simplementation\scould\sbe\shammered\sout\sin\smuch\smore\scooperative\smanner.
J login pointsman
J mimetype text/x-fossil-wiki
K b8f575aa2398b0e44b5a037326b9d75037e2da4a
U pointsman
Z 1ead1842348effd4444dd5cd61beee7e