[GTALUG] [OT] Git Conundrum

David Collier-Brown davec-b at rogers.com
Fri Nov 7 21:42:45 UTC 2014


On 11/07/2014 02:54 PM, Scott Elcomb wrote:
> , however the two environments are not acting (sorting, specifically) 
> the same.
Check the character set: sort(1) guarantees it sorts bytes. Gnu sort 
sorts characters,
which are not the same thing, and carries the warning:

***  WARNING  ***  The locale specified by the environment affects sort
        order.  Set LC_ALL=C to get the traditional sort order that uses 
native
        byte values.

The Eunuchs wanted to sort lines of bytes separated by ASCII newline 
characters, 0x0A, and did.  Gnu extended this to other character sets, 
but silently changed the default.

Linus would not have been impressed (;-))

--dave


-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net           |                      -- Mark Twain



More information about the talk mailing list