Skip to content

RFC: Make \xNN mean utf8 code unit, not unicode codepoint. #2800

Closed
@graydon

Description

There's not a lot of consensus on this between languages, but the C and C++ paths (also perl, go, and at least python3 'bytes' literals, though not 'string') treat this escape as a code unit, not a codepoint.

Metadata

Assignees

No one assigned

    Labels

    A-UnicodeArea: UnicodeA-grammarArea: The grammar of RustC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions