NetBSD-Bugs archive

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

bin/58014: wc no longer works with binary files



>Number:         58014
>Category:       bin
>Synopsis:       wc no longer works with binary files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 09 07:50:00 +0000 2024
>Originator:     Mike Cheponis
>Release:        10.0_RC5
>Organization:
self
>Environment:
NetBSD SS.Culver.Net 10.0_RC5 NetBSD 10.0_RC5 (GENERIC) #0: Tue Feb 27 05:27:39 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
when 'wc' is given input from a binary file, it now gives the error:

wc: hello: invalid byte sequence

(Assuming 'hello' is a binary file)


On 
NetBSD arm64 10.99.7 NetBSD 10.99.7 (GENERIC64) #0: Fri Aug 11 08:15:30 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm

wc works as one would expect on arm64.  This error only shows up on amd64

There is no mention of a "-b" switch, say, for binary files; nor is there any explanation on the "man wc" page explaining this.
>How-To-Repeat:
wc <any binary file>
>Fix:



Home | Main Index | Thread Index | Old Index