Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ffc0f05edd352629b5887db7be3f12b25f3eca73a7a664da1f4ec50c1b0a911e
Ticket: b989a6a0e01c515f9889ffef2219df99108d045c
regexp -nocase: quantified k misses U+212A KELVIN SIGN that bare k matches
User & Date: anonymous on 2026-10-12 09:19:00
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    **issue:**
    
    With -nocase, `k` matches U+212A, but `k{1}`, `k+`, `k*`, `[k]` and `[k]+` do not.
    
    **repro:**
    
    ```tcl
    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
    
  5. foundin changed to: "9.1.0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "43. Regexp"
  14. title changed to:
    regexp -nocase: quantified k misses U+212A KELVIN SIGN that bare k matches
    
  15. type changed to: "Bug"