Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4043a96a2ac3bd061b141d466477617c832be0e0bd159adaa7c2f6f8a5fa6fc3
Ticket: 3b2a527ed38d5d1ad4de35454f608d11d3149a5b
grapheme.test failures with Unicode 18
User & Date: jan.nijtmans on 2026-08-26 12:45:59
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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 changed to: "9.1"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to: "grapheme.test failures with Unicode 18"
  16. type changed to: "Bug"