Skip to content
Tcl Source Code Artifact [a5fbb98b16]
Login

Artifact [a5fbb98b16]

Artifact a5fbb98b1671116513cbb8bd5f8853b2b10303316d81987d064aeeb7199388a8:

Ticket change [a5fbb98b16] - Ticket [6978c01b652ac87c|6978c01b65] <i>Channel encoding difference 8.6 &lt;-&gt; 9.0</i> status still Open with 3 other changes by jan.nijtmans on 2022-09-11 21:00:57.
D 2022-09-11T21:00:57.283
J icomment I'm\ssorry,\sbut\scheckin\s[e67a247dd4]\sstill\sdoesn't\sfulfull\smy\sexpectation\sof\swhat\sshould\shappen.\sI\sadapted\sthestcase\sio-75.5,\stesting\sfor\sboth\sthe\swritten\soutput\s(which\swas\scorrect\sbefore\sthe\sfix)\sand\sthe\sexception\sthrown.\sWith\sthis\sfix,\sthe\sexpected\soutput\sis\smissing.\r\n\r\nThis\sshows\sthat\schannel\shandling\sis\sa\sbit\smore\scomplicated\sthan\sexpected.\sFor\sexample,\swhat\sif\sthe\s7th\sbyte\sof\sa\ssequence\sis\sin\serror,\sbut\safter\swriting\s4\sbytes\sto\sthe\schannel\sanother\serror\soccurs?\sThen\s-\sI\swould\ssay\s-\sthe\serror\sthat\soccurs\sfirst\sin\sthe\sbyte\sstream\s(not\sthe\serror\swhich\sis\sdiscovered\sfirst)\sshould\swin.\r\n\r\nSo,\safter\sthe\sencoding\serror\sis\sdetected,\sthe\schannel\sshould\scontinue\sto\soperate\sas\snormal,\sonly\sit\sshouldn't\sread\sin\snew\sbytes,\sjust\swrite\sout\sthe\sbytes\sas\sfar\sas\sthey\swere\sencoded.\sAs\ssoon\sas\sall\sbytes\sare\shandled\sthere\sare\stwo\spossibilities:\s1)\sall\sbytes\swere\swritten\scorrectly,\sthen\sthe\sexception\sshould\sbe\sthrown\safter\sall.\s2)\sthe\swrite\sresulted\sin\ssome\serror,\sthan\sthat\sexception\sshould\sbe\sthrown\s....\r\n\r\nHope\sthis\shelps.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 6978c01b652ac87cfc7913f5e534825f15824768
U jan.nijtmans
Z 69e3dc976df7314208f9ebcafe09611d