Overview
| Artifact ID: | 92e6b4ec64ce23d4534a55e698266001e4d200be93bd8b3a786aa77a8956de53 |
|---|---|
| Ticket: | c4eb46a196227040bfb18770ac261d6836e58f0e
endless loop in gets on encoding error in non blocking mode |
| User & Date: | oehhar on 2023-11-06 14:59:06 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
<H2>Issue</H2> *gets* hangs on a non blocking file channel when an encoding error should be reported. <H2>Example</H2> <verbatim> set f [open test_A_195_B.txt wb]; puts -nonewline $f A\xC3B; close $f set f [open test_A_195_B.txt r] fconfigure $f -encoding utf-8 -profile strict -blocking 0 gets $f </verbatim> A file is created with a non continued UTF-8 multi-byte sequence. The channel is configured to error out on encoding errors. Then, a gets in non-blocking mode is executed. TCL hangs on the *gets* line. <H2>Environment</H2> * Branch: core-8-branch, tip-653 * System: Windows 10 64 bit GER * Compiler: MS-VS 2015 on 32 bit Thank you all ! Harald
- foundin changed to: "core-8-branch"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "24. Channel Commands"
- title changed to: "gets blocks on encoding error in non blocking mode"
- type changed to: "Bug"