Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 28e0c3a0d2b89e4a1ab8b2f64db13a6402b2f9f44d4cac3a5c35fdc49fd2b756
Ticket: 81242a48c80efaecf2c70271cafa2c2a0a3bf126
Documentation for Tcl_UtfAtIndex() is incorrect
User & Date: jan.nijtmans on 2020-05-10 20:50:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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.
    
  5. foundin changed to: "all"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "44. UTF-8 Strings"
  14. title changed to: "Documentation for Tcl_UtfAtIndex() is incorrect"
  15. type changed to: "Bug"