Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-12
09:19 • New ticket [b989a6a0e0] regexp -nocase: quantified k misses U+212A KELVIN SIGN t... artifact: ffc0f05edd user: anonymous

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.