Skip to content

strconv: CanBackquote(invalid UTF-8) should be false #7572

@robpike

Description

@robpike
The comment says it guarantees the string can be represented, but there is an argument
that bad UTF-8 will surprise someone who backquotes the string and finds it contains
illegal encodings.

For discussion.

See also issue #7565.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions