Artifacts Associated With Ticket 3b2a527ed3
Ticket change [4043a96a2a] (rid 255743) by jan.nijtmans on 2026-08-26 12:45:59:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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> - foundin initialized to: "9.1"
- is_private initialized to: "0"
- login: "jan.nijtmans"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "jan.nijtmans"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to: "grapheme.test failures with Unicode 18"
- type initialized to: "Bug"
Ticket change [43cb64565a] (rid 255747) by apnadkarni on 2026-08-26 15:18:22:
- 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.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [c52e9c62a9] (rid 255748) by jan.nijtmans on 2026-08-26 15:40:52:
- 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.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [029c697801] (rid 257306) by jan.nijtmans on 2026-10-02 18:56:47:
- icomment:
Utf8proc 2.12.0 is released now. Still, those 4 testcases fail.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [b77ec99528] (rid 257315) by apnadkarni on 2026-10-04 13:03:51:
- assignee changed to: "apnadkarni"
- 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.
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [e2fb6c30f8] (rid 257316) by apnadkarni on 2026-10-04 17:06:54:
- 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.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [dc56270c53] (rid 257330) by jan.nijtmans on 2026-10-05 14:48:08:
- icomment:
Confirming that the testcases now pass in the "bug-3b2a52-apn" branch. Thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [0466cd36ff] (rid 257334) by apnadkarni on 2026-10-05 16:41:25:
- closedate changed to: "2461319.1954371645"
- closer changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"