Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Nov 2019 21:09:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241679] /usr/bin/sort fails if UTF-8 input is received from stdin
Message-ID:  <bug-241679-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241679

            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@FreeBSD.org
          Reporter: rfg-freebsd@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 s=
ort
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=C3=BCrich.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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241679-227>