Date: Wed, 11 Oct 2017 16:48:22 -0400 From: Steve Wills <swills@FreeBSD.org> To: "Matthew D. Fuller" <fullermd@over-yonder.net>, Jan Beich <jbeich@FreeBSD.org> Cc: 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: <a6b53251-a170-c433-7833-00fca9195682@FreeBSD.org> In-Reply-To: <20171011194431.GQ53186@over-yonder.net> References: <201710111808.v9BI80e5008260@repo.freebsd.org> <vajl-eefu-wny@FreeBSD.org> <20171011194431.GQ53186@over-yonder.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On 10/11/2017 15:44, Matthew D. Fuller wrote: > 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 > > Yeah, sorry, forgot to copy my reply to the list. Here it is: > Oh, nothing, I was just adding some things and as a result had to > re-sort and forgot to set LANG=C before calling sort (since I have > LANG=en_US.UTF-8 in my environment). Sorry! You're free to fix it, > or I can get it in the next update. So yeah, you're right, just a collation issue. Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a6b53251-a170-c433-7833-00fca9195682>