Skip to content

%? in fmt!() with string arg incorrectly escapes single-quotes #8743

Closed
@lilyball

Description

@lilyball

When using %? to format a string arg to fmt!(), any single-quotes in the string are escaped, even though single-quotes are not special characters within double-quoted strings.

printfln!("%?", "foo 'bar'");

prints

"foo \'bar\'"

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