Skip to content

printf: quote ignored chars in the character constant warning #16494

Closed

Description

@sylvestre

GNU coreutils master now quotes the ignored characters in this warning.

$ printf '%x\n' "'ABC"
printf: warning: BC: character(s) following character constant have been ignored     # uutils
printf: warning: 'BC': character(s) following character constant have been ignored   # GNU

The warning is in src/uucore/src/lib/features/format/argument.rs
(PartialMatch). The existing expectations in test_printf.rs need updating too.

Test added in #16493: cargo test --features unix --test tests -- --ignored test_printf::test_ignored_chars_warning_is_quoted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions