Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9e21f1eb6b08a163dd25b88adab7d998a12b7b7cc4534fcd033f2337fdd114cc
Ticket: f443140a8547b6f6d70c51a6bbf742e72dca0ca8
connection between Tcl_UtfNext/Tcl_UtfPrev and Tcl_UtfCharComplete()
User & Date: jan.nijtmans on 2020-04-29 11:26:10
Changes

  1. icomment:
    Let me describe a little bit how I see those testcases. For example utf-2.9.[012]
    
    [https://core.tcl-lang.org/tcl/artifact?ln=117-125&name=b7a8d0dbc9b5df6e]
    
    We want to test "string length" with 4-byte sequences. The "ucs2" selector is used for Tcl 8.5, which doesn't know anything about 4-byte sequences. So test-case utf-2.9.0 handles that.
    
    Builds knowing UCS4 can use the \UXXXXX escape sequence to generate 4-byte sequences. Testcase utf-2.9.1 does that. No need for "testbytestring" here.
    
    Builds not knowing UCS4 can use surrogate pairs. This even works on Tcl 8.5, but there it is actually a different test-case. No problem. This way we have 3 test-cases covering as much situations as possible.
    
    Hope this makes it a little bit more clear
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"