svn commit: r451768 - in head/devel/ncurses: . files

Matthew D. Fuller fullermd at over-yonder.net
Wed Oct 11 19:49:55 UTC 2017


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 at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.


More information about the svn-ports-all mailing list