Skip to content
Tcl Source Code History Of Ticket 4e38c347a4ff74fb
Login

History Of Ticket 4e38c347a4ff74fb

Artifacts Associated With Ticket 4e38c347a4ff74fb

  1. Ticket change [c3d86ff8cb] (rid 221248) by jan.nijtmans on 2024-01-09 23:22:29:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The functions Tcl_UtfN(case)cmp in Tcl 8.6 expect the "n" parameter to count in UTF-16 units, but in 8.7/9.0 those functions count in UTF-32. As long as the string doesn't contain codepoints > U+FFFF this won't be noticed, but it's not correct.
      
      Example code from tcldom (domxslt.c line 2312-2315):
      <pre>
              lenA = Tcl_NumUtfChars (strA, -1);
              lenB = Tcl_NumUtfChars (strB, -1);
              len = (lenA < lenB ? lenA : lenB);
              rc = Tcl_UtfNcasecmp (strA, strB, len);
      </pre>
      
      There's nothing wrong with this code but if Tcl_UtfNcasecmp() doesn't use the same "len" metrics as Tcl_NumUtfChars() this won't work as expected.
      
      Solution: Move Tcl_UtfN(case)cmp to new stub entries, and put back the original Tcl 8.6 versions of those functions. That restores full binary compatibility between 8.6 and 8.7
      
    5. foundin initialized to: "8.7"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to: "Changed contract for Tcl_UtfN(case)cmp in Tcl 8.7"
    16. type initialized to: "Bug"
  2. Ticket change [52dd8368ac] (rid 221249) by jan.nijtmans on 2024-01-09 23:35:21:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [921c64a2f0] (rid 221286) by jan.nijtmans on 2024-01-10 21:22:44:

    1. closedate changed to: "2460320.39079428"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "Fixed now in core-8-branch and trunk"
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"