sort is broken

Dr. Nikolaus Klepp dr.klepp at gmx.at
Sat Nov 2 22:34:47 UTC 2019


Anno domini 2019 Sat, 02 Nov 15:11:37 -0700
 Ronald F. Guilmette scripsit:
> In message <eec0b13b-b5d6-7e51-6241-8e1898150315 at 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 at q4:/ # sort a
> >zürich.email
> >root at q4:/ # sort < a
> >zürich.email
> >root at q4:/ # uname -a
> >FreeBSD q4.queldor.net 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC 
> >amd64
> >root at q4:/ # cat a
> >zürich.email
> >root at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



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


More information about the freebsd-questions mailing list