#1034849 coreutils: pr: -ie don't accept characters for tab override, only bytes

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
наб
Date:
2023-04-25 20:36:04 UTC
Severity:
normal
#1034849#5
Date:
2023-04-25 19:00:22 UTC
From:
To:
Dear Maintainer,
#1034849#10
Date:
2023-04-25 20:33:27 UTC
From:
To:
Same applies to -n, of course.
-- >8 --
$ printf '%s\n' a b c | pr -fna


2023-04-25 22:26                                                  Page 1


    1aa
    2ab
    3ac

$ printf '%s\n' a b c | pr -fną
pr: '-n' extra characters or invalid number in the argument: ‘\205’
Try 'pr --help' for more information.
-- >8 --

Funnily enough, -s is fine since, as an extension, it uses the entire
option-argument instead of the first character.

Taking everything before the first digit in -ien as the [char]
would match the -s extension and is much simpler than mbrtowc()ing
optarg. It's also probably correct for most encodings? So that's a plus.

Best,
наб