Overview
| Comment: | Fix first part of [ed29806baf]: Tcl_UtfToUniChar reads more than TCL_UTF_MAX bytes. Tcl_UtfToUniChar() now never reads more than TCL_UTF_MAX bytes any more. Since the UtfToUtf encoder/decoder now uses TclUtfToUCS4() it doesn't join 2 surrogates as 2 x 3-byte sequences any more. Actually, it shouldn't, because such sequences are invalid UTF-8. Therefore, added the ucs2 constraint to testcase encoding-15.4. Let's see how TIP #573 goes, this TIP should make this change official. Other callers of Tcl_UtfToUniChar() needs to be revised for the same problem. Most callers will need to change Tcl_UtfToUniChar() -> TclUtfToUCS4() and Tcl_UtfCharComplete() -> TclUCS4Complete(), but that's not done yet. |
|---|---|
| Timelines: | family | ancestors | descendants | both | core-8-branch |
| Files: | files | file ages | folders |
| SHA3-256: |
1d9487bc7e6c6941dbbe0fcf24fc5d29 |
| User & Date: | jan.nijtmans on 2020-05-01 14:20:21.319 |
| Other Links: | branch diff | manifest | tags |
Context
|
2020-05-01
| ||
| 14:53 | Never mind remark about TIP #573 in previous commit: Test failure was due to typo. Fixed now. check-in: 15b715b177 user: jan.nijtmans tags: core-8-branch | |
| 14:44 | Merge 8.7 check-in: 056c1aad28 user: jan.nijtmans tags: trunk | |
| 14:20 | Fix first part of [ed29806baf]: Tcl_UtfToUniChar reads more than TCL_UTF_MAX bytes. Tcl_UtfToUniCha... check-in: 1d9487bc7e user: jan.nijtmans tags: core-8-branch | |
| 13:38 | Fix first part of [ed29806baf]: Tcl_UtfToUniChar reads more than TCL_UTF_MAX bytes. Tcl_UtfToUniChar... check-in: 5f2bb912cf user: jan.nijtmans tags: core-8-6-branch | |
|
2020-04-30
| ||
| 21:07 | merge 8.6 check-in: 1921d73497 user: dgp tags: core-8-branch | |
Changes
Modified generic/tclDecls.h
from [ade10c9ba1]
to [aba2b3507e].
[diff]
Modified generic/tclEncoding.c
from [2d0527c2f1]
to [648cae1bd2].
[diff]
Modified generic/tclInt.h
from [7b4e6f1b9c]
to [7fbb603a5a].
[diff]
Modified generic/tclUtf.c
from [f60b307a2e]
to [016c050892].
[diff]
Modified tests/encoding.test
from [9b45488054]
to [98ece6b438].
[diff]