Overview
| Artifact ID: | b7e16b76e3649abb43ffff72eda11a7491c3a294edeb9f18eae6a2b8d75a902c |
|---|---|
| Ticket: | fa3d9fd818fa0072b60dcd14614ebf33d90e4d6b
[fcopy $chan1 $chan2 -size $size] is not [puts -nonewline $chan2 [read $chan1 -size $size] |
| User & Date: | pooryorick on 2023-04-06 10:51:52 |
Changes
- icomment:
Fixed in [39a45eb8ff]. I think the proper fix is to stop using NULL to represent the binary encoding in <code>ChannelState.encoding</code>. <code>iso8859-1</code> is the encoding for handling binary data, and using it brings the implementation more in line with the conceptual design and also reduces the number of different code paths in IO operations. One new aspect of this fix is that setting the encoding to "binary" also sets the profile to strict, which is needed to make some tests pass, but should also help developers avoid silent data corruption for both input and output. For example, in test io-52.10 the previous result was nothing sensible. Now the result is an error that lets the programmer know strange things are afoot in their code. This commit also paves the way for further simplification of the code in tclIO.c.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"