Overview
| Artifact ID: | 28e0c3a0d2b89e4a1ab8b2f64db13a6402b2f9f44d4cac3a5c35fdc49fd2b756 |
|---|---|
| Ticket: | 81242a48c80efaecf2c70271cafa2c2a0a3bf126
Documentation for Tcl_UtfAtIndex() is incorrect |
| User & Date: | jan.nijtmans on 2020-05-10 20:50:44 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
According to the documentation, calling Tcl_UtfNext "is equivalent to calling -\fBTcl_UtfNext\fR \fIindex\fR times". If that's true, the implementation of Tcl_UtfNext() 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.
- foundin changed to: "all"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "44. UTF-8 Strings"
- title changed to: "Documentation for Tcl_UtfAtIndex() is incorrect"
- type changed to: "Bug"