Skip to content
Tcl Source Code Artifact [d5813a1390]
Login

Artifact [d5813a1390]

Artifact d5813a1390c6cf5237e41184bfc86760fbfa34f3ddd5c97e1e679fcfbade50ac:

Ticket change [d5813a1390] - Closed ticket [ea53aa804d4ef48b|ea53aa804d]: <i>[Serial port] Ignore BREAK condition on read</i> plus 4 other changes by serhiy.storchaka on 2026-10-14 18:48:19.
D 2026-10-14T18:48:19.312
J icomment On\sWindows\sa\sserial\serror\ssuch\sas\sBREAK\sis\sreported\sby\sone\s<nowiki>[read]</nowiki>\sas\san\sI/O\serror,\swith\sthe\sdetails\sin\s<code>fconfigure\s$chan\s-lasterror</code>,\sand\sthen\scleared;\sthe\sdata\sin\sthe\squeue\sis\snot\sdiscarded.\sSo\syou\scan\scatch\sthe\serror\sand\sread\sagain:\n\n<verbatim>\nif\s{[catch\s{read\s$rh}\sdata]\s&&\s"BREAK"\sin\s[fconfigure\s$rh\s-lasterror]}\s{\n\s\s\s\sset\sdata\s[read\s$rh]\n}\n</verbatim>
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K ea53aa804d4ef48bddf9e20869231d7017331b74
U serhiy.storchaka
Z 1935b4b3a5dfd01b5c549451ff1f3dd3