Overview
| Comment: | Fix regression in Tcl_NumUtfChars, caused by this commit: [6596c4af31e29b5d]. Expectations of failing tests was adapted later, that's why this was missed. Lesson: Tcl_UtfNext() is _not_ just an optimized replacement for Tcl_UtfToUniChar(). Sorry, but this change it just to dangerous! Tcl_UniCharAtIndex() and Tcl_UtfAtIndex() most likely have the same regression when fead with invalid byte-sequences, therefore reverted those too. HOLD ON! These regressions are equally the result of [5c322bbd51]. It takes both changes to cause the failing tests. We need to argue about which change was the wrong one. |
|---|---|
| Timelines: | family | ancestors | descendants | both | utf-next-regresions |
| Files: | files | file ages | folders |
| SHA3-256: |
3fd0be11ba8068b4be44b2016b73ca6f |
| User & Date: | jan.nijtmans on 2020-04-23 19:07:08.745 |
| Original Comment: | Fix regression in Tcl_NumUtfChars, caused by this commit: [6596c4af31e29b5d]. Expectations of failing tests was adapted later, that's why this was missed. Lesson: Tcl_UtfNext() is _not_ just an optimized replacement for Tcl_UtfToUniChar(). Sorry, but this change it just to dangerous! Tcl_UniCharAtIndex() and Tcl_UtfAtIndex() most likely have the same regression when fead with invalid byte-sequences, therefore reverted those too. |
| Other Links: | branch diff | manifest | tags |
Context
|
2020-04-23
| ||
| 19:14 | Revert change in ParseLexeme() too closed check-in: 6bbaeb00a3 user: jan.nijtmans tags: utf-next-regresions | |
| 19:07 | Fix regression in Tcl_NumUtfChars, caused by this commit: [6596c4af31e29b5d]. Expectations of failin... check-in: 3fd0be11ba user: jan.nijtmans tags: utf-next-regresions | |
| 13:53 | Fix TclUtfNext() macro. Use it in tclTest.c, so such a mistake can be detected next time. check-in: dfe11ec0ed user: jan.nijtmans tags: core-8-6-branch | |
Changes
Modified generic/tclUtf.c
from [9220af0032]
to [6e58a843ab].
[diff]
Modified tests/utf.test
from [3f8367d1d1]
to [0b721791f7].
[diff]