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

Steve Wills swills at FreeBSD.org
Wed Oct 11 20:48:34 UTC 2017


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


More information about the svn-ports-all mailing list