.
D 2022-12-08T22:59:16.948
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Create\sthe\stest\sdata:\r\n\r\nset\smyfd\s[open\s"data.txt"\sw+]\r\nfconfigure\s$myfd\s-encoding\sbinary\r\nputs\s-nonewline\s$myfd\sA\\x81BCDEFG\r\nclose\s$myfd\r\n\r\nThen\stry\sthis:\r\n\r\nset\smyfd\s[open\s"data.txt"]\r\nfconfigure\s$myfd\s-encoding\sutf-8\s-strictencoding\strue\s-nocomplainencoding\sfalse\r\nset\sdata\s[read\s$myfd]\r\nputs\s"eof\s[eof\s$myfd]"\r\nputs\s"fblocked\s[fblocked\s$myfd]"\r\nputs\s"data\slength\s[string\slength\s$data]"\r\nputs\s"data:\s$data"\r\nset\sdata\s[read\s$myfd]\r\n\r\nI\sget:\r\n\r\neof\s1\r\nfblocked\s0\r\ndata\slength\s1\r\ndata:\sA\r\nerror\sreading\s"file6":\sillegal\sbyte\ssequence\r\n\s\s\s\swhile\sexecuting\r\n"read\s$myfd"\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"set\sdata\s[read\s$myfd]"\r\n\r\n\r\nI\sguess\sthis\sisn't\ssupposed\sto\swork\sthis\sway?
J foundin 9.04a,\strunk
J is_private 0
J login pointsman
J priority 5\sMedium
J private_contact 4ca203a8e925aecdd9419645f936bccf18cd6ea7
J resolution None
J severity Important
J status Open
J submitter pointsman
J subsystem 25.\sChannel\sSystem
J title Tcl\s9
J type Bug
K b8f575aa2398b0e44b5a037326b9d75037e2da4a
U pointsman
Z b6e569bf53fc69b5de220102f5402abf