Overview
| Artifact ID: | a8a57b5ccbaef3a4d59a55ec417c0852702a0cdd722f95a90e83afa140c481a2 |
|---|---|
| Ticket: | a173f9229fe2fec80dc8d43a16c1d7366fb11945
fcopy and encoding errors: no partial write, no transparency write |
| User & Date: | jan.nijtmans on 2023-11-16 21:57:27 |
Changes
- icomment:
I agree that 1 is a bug and 2 is a documentation issue. However, 3 is - indeed - a possibility for data loss. After reading a block of data, the pointer cannot be put back to its original file position (it might come from a socket). So, IMHO, it would be best to use the "-data" key as well for this situation. This can only happen when all of these are true: - the output channel "-profile" is "strict" - the input and output encoding are different - the output encoding is not UTF-8/UTF-16/UTF-32 So, if any of those 3 conditions is false, we could use the "-data" key here too. I think this situation is rare: Why would someone want to convert from UTF-8 to another (less capable) encoding? Converting from another encoding to UTF-8 will be much more common.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"