Overview
| Comment: | Convert Tcl_UtfNext into a routine that doesn't decode UTF-8 into UCS-2, but sticks only to its task of computing the pointer increment. Update callers of Tcl(_)UtfToUniChar that do not need decoding to use Tcl_UtfNext instead. Changes here fix [2738427] putting in place full overflow protection for Tcl_NumUtfChars(). Many tests and doc improvements. |
|---|---|
| Timelines: | family | ancestors | descendants | both | core-8-5-branch |
| Files: | files | file ages | folders |
| SHA3-256: |
76213b3f723444b814bc6f07219e1d8b |
| User & Date: | dgp on 2020-04-16 19:52:26.279 |
| Other Links: | branch diff | manifest | tags |
References
|
2020-04-24
| ||
| 17:18 | Revert the parts of [76213b3f72] that converted callers of Tcl_UtfToUniChar into callers of Tcl_UtfN... check-in: 870aba745a user: dgp tags: core-8-5-branch | |
Context
|
2020-04-24
| ||
| 17:18 | Revert the parts of [76213b3f72] that converted callers of Tcl_UtfToUniChar into callers of Tcl_UtfN... check-in: 870aba745a user: dgp tags: core-8-5-branch | |
|
2020-04-16
| ||
| 20:38 | Merge 8.5. Failing tests for now. To be remedied shortly. check-in: 6596c4af31 user: dgp tags: core-8-6-branch | |
| 20:28 | merge litter check-in: 7e421dce7c user: dgp tags: core-8-5-branch | |
| 19:52 | Convert Tcl_UtfNext into a routine that doesn't decode UTF-8 into UCS-2, but sticks only to its task... check-in: 76213b3f72 user: dgp tags: core-8-5-branch | |
| 19:39 | Improve the docs for Tcl_UtfNext. closed check-in: cf6c570b2a user: dgp tags: dgp-utf-next | |
| 18:14 | Create and use macro TclUtfPrev for Tcl_UtfPrev. check-in: 3ba6c74d19 user: dgp tags: core-8-5-branch | |
Changes
Modified doc/Utf.3
from [ca5931fb1a]
to [16e7b8ee04].
[diff]
Modified generic/tclCompExpr.c
from [c4a5529845]
to [312f6e9223].
[diff]
Modified generic/tclInt.h
from [6394141b47]
to [f365c9245a].
[diff]
Modified generic/tclUtf.c
from [2632bc61a4]
to [bd309aa713].
[diff]
Modified generic/tclUtil.c
from [d4b223de7c]
to [ed60fb05df].
[diff]
Modified tests/utf.test
from [1c14ec8883]
to [c4d8822e38].
[diff]