Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Implementation branch for TIP 345: Kill the "identity" encoding. This checkin, completely does that. Bad news is it causes huge failures. We're still making a lot of use of this encoding, and cannot complete this TIP until the branch is repaired. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | tip-345 |
Files: | files | file ages | folders |
SHA3-256: |
04e7b29a202b0ccc4759fca052852d92 |
User & Date: | dgp 2017-10-23 17:06:57 |
Context
2017-10-23
| ||
17:58 | backout initial commit; need more care. Binary writes internally make use of this encoding. Need to... check-in: 69404f073a user: dgp tags: tip-345 | |
17:06 | Implementation branch for TIP 345: Kill the "identity" encoding. This checkin, completely does that.... check-in: 04e7b29a20 user: dgp tags: tip-345 | |
12:10 | merge core-8-6-branch check-in: 91967bbc3f user: jan.nijtmans tags: trunk | |
Changes
Changes to generic/tclEncoding.c.
︙ | ︙ | |||
191 192 193 194 195 196 197 | static unsigned short emptyPage[256]; /* * Functions used only in this module. */ | < < < < < | 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | static unsigned short emptyPage[256]; /* * Functions used only in this module. */ static void DupEncodingIntRep(Tcl_Obj *srcPtr, Tcl_Obj *dupPtr); static void EscapeFreeProc(ClientData clientData); static int EscapeFromUtfProc(ClientData clientData, const char *src, int srcLen, int flags, Tcl_EncodingState *statePtr, char *dst, int dstLen, int *srcReadPtr, int *dstWrotePtr, int *dstCharsPtr); |
︙ | ︙ | |||
559 560 561 562 563 564 565 | /* * Create a few initial encodings. Note that the UTF-8 to UTF-8 * translation is not a no-op, because it will turn a stream of improperly * formed UTF-8 into a properly formed stream. */ | < < < < < < < < | 554 555 556 557 558 559 560 561 562 563 564 565 566 567 | /* * Create a few initial encodings. Note that the UTF-8 to UTF-8 * translation is not a no-op, because it will turn a stream of improperly * formed UTF-8 into a properly formed stream. */ type.encodingName = "utf-8"; type.toUtfProc = UtfExtToUtfIntProc; type.fromUtfProc = UtfIntToUtfExtProc; type.freeProc = NULL; type.nullSize = 1; type.clientData = NULL; Tcl_CreateEncoding(&type); |
︙ | ︙ | |||
2075 2076 2077 2078 2079 2080 2081 | type.fromUtfProc = EscapeFromUtfProc; type.freeProc = EscapeFreeProc; type.nullSize = 1; type.clientData = dataPtr; return Tcl_CreateEncoding(&type); } | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 | type.fromUtfProc = EscapeFromUtfProc; type.freeProc = EscapeFreeProc; type.nullSize = 1; type.clientData = dataPtr; return Tcl_CreateEncoding(&type); } /* *------------------------------------------------------------------------- * * UtfExtToUtfIntProc -- * * Convert from UTF-8 to UTF-8. While converting null-bytes from the |
︙ | ︙ |