Skip to content
Tcl Source Code Artifact [35c92d4b3a]
Login

Artifact [35c92d4b3a]

Artifact 35c92d4b3ac131e1afe2fad6423c0ca33621c9ff71f5698d3ee8780d06fdd480:

Ticket change [35c92d4b3a] - New ticket [0cd1ae596e709259|0cd1ae596e] <i>Under strict encoding, [gets] returns an error though when a complete line is available</i>. by pooryorick on 2023-04-13 20:46:59.
D 2023-04-13T20:46:59.050
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\sfollowing\sscript\sshould\sprint\sthe\sfirst\sline\sread\sfrom\sthe\sfile\sbut\sinstead\r\nit\sproduces\sthe\serror,\s"invalid\sor\sincomplete\smultibyte\sor\swide\scharacter".\r\nThere\sis\sa\sutf-8\sencoding\sin\sthe\ssecond\sline,\snot\sthe\sfirst:\r\n\r\n<blockquote><code><verbatim>\r\nset\schan\s[file\stempfile]\r\nchan\sconfigure\s$chan\s-encoding\sbinary\r\n#\s\\xc0\sis\sinvalid\sin\sutf-8\r\nputs\s-nonewline\s$chan\sa\\nb\\xc0\\nc\\n\r\nflush\s$chan\r\nseek\s$chan\s0\r\nchan\sconfigure\s$chan\s-encoding\sutf-8\s-buffering\snone\s-eofchar\s{}\s-translation\slf\s-profile\sstrict\r\nputs\s[gets\s$chan]\r\n</verbatim></code></blockquote>
J is_private 0
J login pooryorick
J priority 5\sMedium
J private_contact 2b2275eab1118e1fab0016cf1c5702893c6af86c
J resolution None
J severity Important
J status Open
J submitter pooryorick
J subsystem -\sNew\sBuiltin\sCommands
J title Under\sstrict\sencoding,\s[gets]\sreturns\san\serror\sthough\swhen\sa\scomplete\sline\sis\savailable
J type Bug
K 0cd1ae596e70925906ace67831f123e6b2ec2035
U pooryorick
Z 8ba0874294d693ae33068f1255779f65