Skip to content

Raw strings don't preserve carriage return + newline sequences #82721

@Count-Count

Description

@Count-Count

According to the Raw string literals section in the reference the "raw string body can contain any sequence of Unicode characters" and "[a]ll Unicode characters contained in the raw string body represent themselves". However in such a raw string carriage return + newline sequences (U+000D U+000A) are replaced by a single newline char (U+000A).

This is probably a sensible choice but if so should be documented thus.

Testcase

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