Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2019 23:29:10 +0100
From:      "Dr. Nikolaus Klepp" <dr.klepp@gmx.at>
To:        freebsd-questions@freebsd.org
Subject:   Re: sort is broken
Message-ID:  <201911022329.10843.dr.klepp@gmx.at>
In-Reply-To: <8221.1572732697@segfault.tristatelogic.com>
References:  <8221.1572732697@segfault.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Anno domini 2019 Sat, 02 Nov 15:11:37 -0700
 Ronald F. Guilmette scripsit:
> In message <eec0b13b-b5d6-7e51-6241-8e1898150315@queldor.net>, you wrote:
>=20
> >
> >
> >
> >On 11/2/19 5:14 PM, Ronald F. Guilmette wrote:
> >> Not a question, just an expression of grief and deep dismay.
> >>=20
> >> It is a sad day when even very fundamental tools, used in billions
> >> of scripts, such as /usr/bin/sort turn up broken.
> >>=20
> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241679
> >>=20
> >> Regards,
> >> rfg
> >>=20
> >
> >root@q4:/ # sort a
> >z=C3=BCrich.email
> >root@q4:/ # sort < a
> >z=C3=BCrich.email
> >root@q4:/ # uname -a
> >FreeBSD q4.queldor.net 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC=20
> >amd64
> >root@q4:/ # cat a
> >z=C3=BCrich.email
> >root@q4:/ #
> >
> >Seems to be fine on my 12.0
>=20
> Well, I guess it's just me then...
>=20
> % uname -a
> FreeBSD segfault.tristatelogic.com 12.0-RELEASE FreeBSD 12.0-RELEASE r341=
666 GENERIC  amd64
> % sort --version
> 2.3-FreeBSD
>=20
>=20
> What version of sort do you have?

I remember that this sort of thing is around since at least 11.0. The probl=
em occurs, when you have UFT-8 encoding set as default, but the input data =
is iso 8859-1. Some characters of iso 8859-1 (=C3=A4=C3=B6=C3=BC...) are no=
t valid in UTF-8.

Nik

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>=20



=2D-=20
Please do not email me anything that you are not comfortable also sharing w=
ith the NSA, CIA ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911022329.10843.dr.klepp>