[Bug 241679] /usr/bin/sort fails if UTF-8 input is received from stdin
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 2 21:09:19 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241679
Bug ID: 241679
Summary: /usr/bin/sort fails if UTF-8 input is received from
stdin
Product: Base System
Version: 12.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: rfg-freebsd at tristatelogic.com
If /usr/bin/sort is given the name of a file on the command line and if that
file contains lines which themselves contain UTF-8 encoded data, then the sort
utility will function normally and as expexcted. If on the other hand the same
file content is supplied to /usr/bin/sort via its stdin channel, then sort will
fail completely and will issue the following error message:
sort: Illegal byte sequence
The can be verified by placing the following line into a file called "test" and
then attempting to sort that file content in different ways:
zürich.email
Example #1:
sort test
The above works just fine.
Example #2:
sort < test
The above fails and issues the error:
sort: Illegal byte sequence
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list