Overview
| Artifact ID: | 4b2cae1fcfab9d5331b9c95d7e2de899721b5a723dd9e23ce5ca7e0209fb2c19 |
|---|---|
| Ticket: | 154ed7ce564a7b4cc39463d643b251969006c247
Tcl 9: [gets] on -strictencoding 1 configured channel |
| User & Date: | pointsman on 2022-12-22 13:15:31 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
# Create the data package require Tcl 9 set fd [open "data.txt" w+] fconfigure $fd -encoding binary # This is not valid UTF-8 puts $fd AB\xc0\x40CD\nEFG close $fd # Now try to read it with [gets] set fd [open "data.txt"] fconfigure $fd -encoding utf-8 -strictencoding 1 # That next line will hang indefinitely set data [gets $fd] puts "not reached" close $fd puts $data I'm not sure how this is supposed to work but it surely should not work this way.
- foundin changed to: "Tcl 9.0, trunk"
- is_private changed to: "0"
- login: "pointsman"
- priority changed to: "5 Medium"
- private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "pointsman"
- subsystem changed to: "25. Channel System"
- title changed to: "[gets] on -strictencoding 1 configured channel"
- type changed to: "Bug"