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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"