Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2017 14:44:31 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Jan Beich <jbeich@FreeBSD.org>
Cc:        Steve Wills <swills@FreeBSD.org>, svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r451768 - in head/devel/ncurses: . files
Message-ID:  <20171011194431.GQ53186@over-yonder.net>
In-Reply-To: <vajl-eefu-wny@FreeBSD.org>
References:  <201710111808.v9BI80e5008260@repo.freebsd.org> <vajl-eefu-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 11, 2017 at 08:18:13PM +0200 I heard the voice of
Jan Beich, and lo! it spake thus:
> 
> What was wrong with previous sorting?
> 
> $ printf 'BC.3x.gz\nbeep.3x.gz\nbeep_sp.3x.gz\n' | sort
> BC.3x.gz
> beep.3x.gz
> beep_sp.3x.gz

Collation is "fun" in the post-7-bit world...

% printf 'baudrate.3x.gz\nBC.3x.gz\nbeep.3x.gz\nbeep_sp.3x.gz\n' \
    | env LANG=C sort
BC.3x.gz
baudrate.3x.gz
beep.3x.gz
beep_sp.3x.gz

% printf 'baudrate.3x.gz\nBC.3x.gz\nbeep.3x.gz\nbeep_sp.3x.gz\n' \
    | env LANG=en_US.UTF-8 sort
baudrate.3x.gz
BC.3x.gz
beep_sp.3x.gz
beep.3x.gz


-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



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