Overview
| Artifact ID: | a310a4733aca0a6fdedebda684d78b66bc5fc2ab5dbccd361bf90470c011be66 |
|---|---|
| Ticket: | a173f9229fe2fec80dc8d43a16c1d7366fb11945
fcopy and encoding errors: no partial write, no transparency write |
| User & Date: | oehhar on 2023-11-18 18:15:24 |
Changes
- icomment:
For the same encoding case, the code to detect "verbatim copy" is as follows (tclIO.c Line 9496): <verbatim> moveBytes = inStatePtr->inEofChar == '\0' /* No eofChar to stop input */ && inStatePtr->inputTranslation == TCL_TRANSLATE_LF && outStatePtr->outputTranslation == TCL_TRANSLATE_LF && inStatePtr->encoding == outStatePtr->encoding && ENCODING_PROFILE_GET(inStatePtr->inputEncodingFlags) == TCL_ENCODING_PROFILE_TCL8 && ENCODING_PROFILE_GET(outStatePtr->outputEncodingFlags) == TCL_ENCODING_PROFILE_TCL8; </verbatim> So, the conditions are: * No EOF char * Translation: LF * input encoding equal output encoding * profile: TCL8 I am not sure, if this should not be profile agnostic. Specially, profile TCL8 may disappear and I don't like to set it anywhere. But anyway, that is the current code. Lets document it like that and point. Take care, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"