Tcl Source Code

View Ticket
Login
Ticket UUID: b989a6a0e01c515f9889ffef2219df99108d045c
Title: regexp -nocase: quantified k misses U+212A KELVIN SIGN that bare k matches
Type: Bug Created on: 2026-10-12 09:19:00
Submitter: anonymous Assigned to: nobody
Subsystem: 43. Regexp Severity: Minor
Priority: 5 Medium Last modified: 2026-10-12 09:19:00
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 9.1.0
Description:

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