Overview
| Artifact ID: | 35c92d4b3ac131e1afe2fad6423c0ca33621c9ff71f5698d3ee8780d06fdd480 |
|---|---|
| Ticket: | 0cd1ae596e70925906ace67831f123e6b2ec2035
Under strict encoding, [gets] returns an error even though a complete line is available |
| User & Date: | pooryorick on 2023-04-13 20:46:59 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The following script should print the first line read from the file but instead it produces the error, "invalid or incomplete multibyte or wide character". There is a utf-8 encoding in the second line, not the first: <blockquote><code><verbatim> set chan [file tempfile] chan configure $chan -encoding binary # \xc0 is invalid in utf-8 puts -nonewline $chan a\nb\xc0\nc\n flush $chan seek $chan 0 chan configure $chan -encoding utf-8 -buffering none -eofchar {} -translation lf -profile strict puts [gets $chan] </verbatim></code></blockquote> - is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- private_contact changed to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
Under strict encoding, [gets] returns an error though when a complete line is available
- type changed to: "Bug"