Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e9f5910084038b4360ffcd1d591b5db2e360817b61412a37e9bf52c17be77840
Ticket: f443140a8547b6f6d70c51a6bbf742e72dca0ca8
connection between Tcl_UtfNext/Tcl_UtfPrev and Tcl_UtfCharComplete()
User & Date: dgp on 2020-04-28 17:38:19
Changes

  1. icomment:
    You ask about test utf-7.40.0 .  Note that it is paired with the test utf-7.40.1.
    The pair of tests are meant to cover the changing behavior of Tcl through different
    releases.
    
    The first test is constrained to "ucs2" which in this case is meant to  indicate a Tcl
    interpreter like the default build of Tcl 8.5 where 4 byte sequences are not recognized
    as valid at all.  In that circumstance, the byte sequence \xF0\x90\x80\x80 encodes
    the character sequence
        U+00F0 U+0090 U+0080 U+0080
    and we are pointed at the 4th of those 4 characters.  The correct previous character
    is the third one, and the test properly expects the result "3".
    
    We may regret that history, but it is the documented and expected behavior of
    our released products.  This test among others will help us not release a Tcl 8.5.20
    that is at odds with Tcl 8.5.19.  Folks who cannot abide this nonconformance in
    our old release lines are welcome to move forward to the first release line that meets
    their standards. We have several to choose from.
    
    The companion test is constrained "fullutf" which in this case is meant to indicate
    a Tcl interpreter where 4-byte sequences are recognized.  The expected result of
    this test is "1", just as you call for.
    
    I cannot think of any reason why I would hope to see "2" as the answer.
    
    Hmmmm.... now that I look again at your comment, you have a test utf-7.40.0
    with a constraint "tip389". That is not correct, and it doesn't match the content of
    any of the main dev branches.  Branches 8.5 and 8.6 are as I describe, and
    branch 8.7 does not yet have this testing regime brought forward (Still working
    on that, sorry). Branches 8.7 and 9 have no test utf-7.40.0 at all yet.
    
    Does that help?
    
  2. login: "dgp"
  3. mimetype: "text/plain"