regexp -nocase: quantified k misses U+212A KELVIN SIGN that bare k matches
Openb989a6a0e01c515f9889ffef2219df99108d045cCreated 52 days agoUpdated 52 days ago
Descriptionmarkdown2026-10-12 09:19:00
issue:
With -nocase, k matches U+212A, but k{1}, k+, k*, [k] and [k]+ do not.
repro:
foreach p {{^k$} {^k{1}$} {^k+$} {^[k]$}} { puts "$p [regexp -nocase $p "\u212a"]" }
# ^k$ 1
# ^k{1}$ 0
# ^k+$ 0
# ^[k]$ 0
expected:
1 for all four
system:
Tcl 9.1.0, macOS 27.0 arm64
Log in (anonymous is fine) to add a comment.