Skip to content
Tcl Source Code History Of Ticket 3b2a527ed3
Login

History Of Ticket 3b2a527ed3

Artifacts Associated With Ticket 3b2a527ed3

  1. Ticket change [4043a96a2a] (rid 255743) by jan.nijtmans on 2026-08-26 12:45:59:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      When running the grapheme.test testcases (Tcl current trunk), 4 testcases failes. This is not a bug in Tcl, since Tcl makes use of / depends on utf8proc for this task. Since Unicode 18 is still in beta, it's not possible to draw a conclusion whether the utf8proc implementating is wrong or the Unicode 18 test vectors.
      
      This ticket is just meant to track the issue.
      
      The failures are:
      <pre>
      grapheme.test
      ==== grapheme-prev-ucd-659.0 ÷ [1.0] VEDIC SIGN JIHVAMULIYA (ConjunctLinkermExtend) × [9.3] DEVANAGARI LETTER KA (LinkingConsonant) ÷ [2.0] FAILED
      ==== Contents of test case:
                  set text [join $graphemes ""]
                  set l {}
                  set i end
                  while {[set grapheme [grapheme prev $text i]] ne ""} {
                      lappend l $grapheme
                  }
                  lreverse $l
      ---- Result was:
      \u1CF5 \u0915
      ---- Result should have been (exact matching):
      \u1CF5\u0915
      ==== grapheme-prev-ucd-659.0 FAILED
      ==== grapheme-prev-ucd-875.0 ÷ [1.0] VEDIC SIGN JIHVAMULIYA (ConjunctLinkermExtend) × [9.3] BENGALI LETTER KA (LinkingConsonant) ÷ [2.0] FAILED
      ==== Contents of test case:
                  set text [join $graphemes ""]
                  set l {}
                  set i end
                  while {[set grapheme [grapheme prev $text i]] ne ""} {
                      lappend l $grapheme
                  }
                  lreverse $l
      ---- Result was:
      \u1CF5 \u0995
      ---- Result should have been (exact matching):
      \u1CF5\u0995
      ==== grapheme-prev-ucd-875.0 FAILED
      ==== grapheme-prev-ucd-876.0 ÷ [1.0] VEDIC SIGN UPADHMANIYA (ConjunctLinkermExtend) × [9.3] BENGALI LETTER PA (LinkingConsonant) ÷ [2.0] FAILED
      ==== Contents of test case:
                  set text [join $graphemes ""]
                  set l {}
                  set i end
                  while {[set grapheme [grapheme prev $text i]] ne ""} {
                      lappend l $grapheme
                  }
                  lreverse $l
      ---- Result was:
      \u1CF6 \u09AA
      ---- Result should have been (exact matching):
      \u1CF6\u09AA
      ==== grapheme-prev-ucd-876.0 FAILED
      ==== grapheme-prev-ucd-879.0 ÷ [1.0] ZANABAZAR SQUARE CLUSTER-INITIAL LETTER RA (ConjunctLinkermExtend) × [9.3] ZANABAZAR SQUARE LETTER KA (LinkingConsonant) ÷ [2.0] FAILED
      ==== Contents of test case:
                  set text [join $graphemes ""]
                  set l {}
                  set i end
                  while {[set grapheme [grapheme prev $text i]] ne ""} {
                      lappend l $grapheme
                  }
                  lreverse $l
      ---- Result was:
      \U00011A3A \U00011A0B
      ---- Result should have been (exact matching):
      \U00011A3A\U00011A0B
      ==== grapheme-prev-ucd-879.0 FAILED
      
      Tests ended at 2026-08-26 14:39:34 CEST
      all.tcl:        Total   41618   Passed  41614   Skipped 0       Failed  4
      Sourced 1 Test Files.
      Files with failing tests: grapheme.test
      </pre>
      
    5. foundin initialized to: "9.1"
    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: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to: "grapheme.test failures with Unicode 18"
    16. type initialized to: "Bug"
  2. Ticket change [43cb64565a] (rid 255747) by apnadkarni on 2026-08-26 15:18:22:

    1. icomment:
      I believe this is same as what was ticketed earlier and being tracked [upstream](https://github.com/JuliaStrings/utf8proc/issues/344). Already fixed but awaiting Unicode 18.0 release before merge into utf8proc main.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  3. Ticket change [c52e9c62a9] (rid 255748) by jan.nijtmans on 2026-08-26 15:40:52:

    1. icomment:
      > Already fixed but awaiting Unicode 18.0 release
      
      The [https://github.com/JuliaStrings/utf8proc/pull/345|PR] which should fix this is already in Tk trunk. It helps a lot, the number of failing tests goes down from 16 to only 4. So, upstream it's not fixed 100% yet.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [029c697801] (rid 257306) by jan.nijtmans on 2026-10-02 18:56:47:

    1. icomment:
      Utf8proc 2.12.0 is released now. Still, those 4 testcases fail.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [b77ec99528] (rid 257315) by apnadkarni on 2026-10-04 13:03:51:

    1. assignee changed to: "apnadkarni"
    2. icomment:
      I should be able to look at this in a week or so. No urgency for 9.1 since it is unsupported in any case and the failures are corner cases that have changed in Unicode 18 vs 17.
      
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
  6. Ticket change [e2fb6c30f8] (rid 257316) by apnadkarni on 2026-10-04 17:06:54:

    1. icomment:
      I just noticed that all four failures are with moving backward through the string. utf8proc itself does not provide a function to do that and the standard only prescribes the algorithm for moving forward. So the bug is likely in my implementation of the `GraphemePrev` function. I'll revisit later.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  7. Ticket change [dc56270c53] (rid 257330) by jan.nijtmans on 2026-10-05 14:48:08:

    1. icomment:
      Confirming that the testcases now pass in the "bug-3b2a52-apn" branch.
      
      Thanks!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  8. Ticket change [0466cd36ff] (rid 257334) by apnadkarni on 2026-10-05 16:41:25:

    1. closedate changed to: "2461319.1954371645"
    2. closer changed to: "apnadkarni"
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"