Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ef4754910319c01850933198ac856fa082835ef6d2c133b6f2a95b2b5342fe1
Ticket: 81242a48c80efaecf2c70271cafa2c2a0a3bf126
Documentation for Tcl_UtfAtIndex() is incorrect
User & Date: jan.nijtmans on 2020-05-13 09:26:14
Changes

  1. closedate changed to: "2458982.89322165"
  2. 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_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.
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/plain"