Skip to content

regex \p{C} matches So characters and misses Co #5609

Closed

Description

@robertmorelli

issue:
\p{C} (Other) matches 😀, which is category So, and misses U+E000, which is Co (private use). \p{So} and \p{Co} are correct.

repro:

(char-general-category #\U1F600)            ; 'so
(regexp-match? #px"^\\p{C}$" "\U1F600")      ; #t (should be #f)
(char-general-category #\uE000)             ; 'co
(regexp-match? #px"^\\p{C}$" "\uE000")       ; #f (should be #t)

expected:
#f, then #t

system:
Racket v9.3 [cs]
macOS 27.0 (build 26A428), arm64

Activity

  1. added a commit that references this issue on Oct 14, 2026
    c3456f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions