#1001049 /usr/bin/hexdump: hexdump: no longer work with some format strings containing backslash escape sequences

Package:
bsdextrautils
Source:
util-linux
Description:
extra utilities from 4.4BSD-Lite
Submitter:
WHR
Date:
2022-04-16 19:51:02 UTC
Severity:
normal
Tags:
#1001049#5
Date:
2021-12-03 06:31:58 UTC
From:
To:
Hello.
It seems that hexdump(1) no longer recognizing certain format strings that
containing backslash character, either used as a part of an escape sequence,
or used for backslash character itself ("\\"); for example:

	$ hexdump -v -e '16/1 "\t%02x" "\n"'
	hexdump: bad conversion character %A
	$ hexdump -v -e '16/1 "\\x%02x" "\n"'
	hexdump: bad conversion character %A

This completely broke existing scripts that using hexdump(1) with similar
format strings, while I couln't find any workaround for this issue.

Also affecting version 2.37.2-4 from Debian unstable.