Overview
| Artifact ID: | 2ef3e670b10686a10b7d21bd84f9072f11e08f32a4b3cd5b9506fd80a92b58d9 |
|---|---|
| Ticket: | 81242a48c80efaecf2c70271cafa2c2a0a3bf126
Documentation for Tcl_UtfAtIndex() is incorrect |
| User & Date: | jan.nijtmans on 2020-05-13 09:26:44 |
Changes
- closedate changed to: "2458982.89357436"
- comment changed to:
According to the documentation, calling Tcl_UtfAtIndex "is equivalent to calling -\fBTcl_UtfNext\fR \fIindex\fR times". If that's true, the implementation of Tcl_UtfAtIndex() as repeatedly calling Tcl_UtfNext() would be correct. So, as a demonstration, I modified Tcl_UtfAtIndex() accordingly (in a branch, of course) and see what happens. I'll explain later why it's wrong and why Tcl_UtfNext() cannot be corrected to make this documentation right again.
- login: "jan.nijtmans"
- mimetype: "text/plain"