bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/27551] The default encoding of the strings utility does no


From: vincent-srcware at vinc17 dot net
Subject: [Bug binutils/27551] The default encoding of the strings utility does not conform to POSIX: should honor the current locale.
Date: Thu, 08 Apr 2021 16:20:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27551

--- Comment #9 from Vincent Lefèvre <vincent-srcware at vinc17 dot net> ---
(In reply to Nick Clifton from comment #8)
> Found the cause of the testsuite failure, so here is a revised (version 3)
> patch.

Like with "-e S", I get binary data:

zira% echo $LC_CTYPE
C.UTF-8
zira% printf "\300\300\300\300" | ./strings | hd
00000000  c0 c0 c0 c0 0a                                    |.....|
00000005
zira% printf "\300\300\300\300" | ./strings | iconv
iconv: illegal input sequence at position 0

On this example, the output of "strings" should be empty.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]