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:
> 
> >
> >
> >
> >On 11/2/19 5:14 PM, Ronald F. Guilmette wrote:
> >> Not a question, just an expression of grief and deep dismay.
> >> 
> >> It is a sad day when even very fundamental tools, used in billions
> >> of scripts, such as /usr/bin/sort turn up broken.
> >> 
> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241679
> >> 
> >> Regards,
> >> rfg
> >> 
> >
> >root@q4:/ # sort a
> >zürich.email
> >root@q4:/ # sort < a
> >zürich.email
> >root@q4:/ # uname -a
> >FreeBSD q4.queldor.net 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC 
> >amd64
> >root@q4:/ # cat a
> >zürich.email
> >root@q4:/ #
> >
> >Seems to be fine on my 12.0
> 
> Well, I guess it's just me then...
> 
> % uname -a
> FreeBSD segfault.tristatelogic.com 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
> % sort --version
> 2.3-FreeBSD
> 
> 
> What version of sort do you have?

I remember that this sort of thing is around since at least 11.0. The problem occurs, when you have UFT-8 encoding set as default, but the input data is iso 8859-1. Some characters of iso 8859-1 (äöü...) are not 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.org"
> 



-- 
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...



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