Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: efd93b45883c4df63ce4493aca7b2fb1c65a33407c39fa336ac08123decc4600
Ticket: 27944a3661a5e409dead945dbc8f9e4a50033e62
Taming test utf-6.88
User & Date: dgp on 2020-04-23 23:44:37
Changes

  1. icomment:
    
    For any
    
    const char string[LEN] = "....";
    
    and any in-range value of
    
    int index = ...;
    
    Given this sequence:
    
    Tcl_UniChar one=0;
    Tcl_UtfToUniChar(Tcl_UtfAtIndex(string, index), &one);
    
    and this sequence:
    
    Tcl_UniChar two = Tcl_GetUniChar(Tcl_NewStringObj(string, LEN), index);
    
    I expect to always end with the result:
    
    (one == two)
    
    The issue here is consistency of indexing results via two separate paths.
    
    If there's any release of 8.5 or 8.6 where that's not true in a default build,
    that would be useful to know.
    
    For now limiting our attention to the default builds of Tcl 8.5 and 8.6 releases, I
    would expect future releases to continue making that guarantee.
    
  2. login: "dgp"
  3. mimetype: "text/plain"