<i>Channel encoding difference 8.6 <-> 9.0</i> status still Open with 4 other changes
by
.
D 2022-08-31T11:44:21.380
J icomment Ok,\sthank\syou\sfor\sthe\sinformation.\sSo,\sTIP633\smakes\ssense,\sif\san\serror\sis\sexpected.\r\n\r\nI\salso\stried\sthe\sother\sway\saround,\se.g.\sreceiving\san\sinvalid\ssequence.\r\nMy\sstandard\sexample\sis\sto\sreceive\san\sincomplete\sUTF-8\ssequence.\r\n\r\nHere\sis\smy\stest\sscript\sfor\stwo\sinterpreters:\r\n\r\n<verbatim>\r\nset\sserverhandle\s[socket\s-server\sconnect\s30000]\r\nproc\sconnect\s{handle\sargs}\s{\r\n\tif\s{[catch\s{\r\n\t\tfconfigure\s$handle\s-encoding\sutf-8\s-buffering\snone\r\n\t\tputs\s"Read\sdata:\s'[gets\s$handle]'"\r\n\t\tclose\s$handle\r\n\t}\sres]}\s{\r\n\t\tputs\sstderr\s"Read\serror:\s$res"\r\n\t}\r\n}\r\nvwait\sforever\r\n</verbatim>\r\n\r\n<verbatim>\r\nset\sclienthandle\s[socket\slocalhost\s30000]\r\nfconfigure\s$clienthandle\s-encoding\sbinary\r\nputs\s-nonewline\s$clienthandle\\\r\n\t\t[string\srange\s[encoding\sconvertto\sutf-8\s"AÄ"]\s0\send-1]\r\nclose\s$clienthandle\r\n</verbatim>\r\n\r\nHere,\s8.6.12\sand\s9.0\sboth\sreturn:\r\n\r\n<verbatm>\r\nRead\sdata:\s'AÃ'\r\n</verbatim>\r\n\r\nIn\scase\sof\s9.0,\sthis\sshould\sbe\s"A"\sand\san\serror,\swhich\sis\snot\sraised.\r\nThe\s8.6\scase\sis\s"A"\sand\sthen\sthe\sincomplete\ssequence\sas\sraw\sbyte.\r\n\r\nSo,\sthis\slooks\sboguous\stoo.\r\n\r\n-----\r\n\r\nI\salso\swondered,\show\sthose\schanges\sare\scovered\sby\sTIP\s601,\sas\sI\sdon't\sfind\sanything\sabout\sit\sin\sTIP\s601.\sIt\sis\san\sindirect\sconsequence\sprobably.
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K 6978c01b652ac87cfc7913f5e534825f15824768
U oehhar
Z b94f4ff54450721719e5fa0d6cd509c1