https://sourceware.org/bugzilla/show_bug.cgi?id=27551
Bug ID: 27551
Summary: The default encoding of the strings utility does not
conform to POSIX: should honor the current locale.
Product: binutils
Version: 2.35.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: vincent-srcware at vinc17 dot net
Target Milestone: ---
The default encoding of the "strings" utility is documented to be
"single-7-bit-byte characters", i.e. ASCII. But
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/strings.html says:
LC_CTYPE
Determine the locale for the interpretation of sequences of bytes of text
data as characters (for example, single-byte as opposed to multi-byte
characters in arguments and input files) and to identify printable strings.
I get:
zira% printenv LC_CTYPE
C.UTF-8
zira% echo abcdéfghi | strings
abcd
fghi
while "strings" should have output:
abcdéfghi
--
You are receiving this mail because:
You are on the CC list for the bug.