Re: [PATCH dash] [BUILTIN] ensure LC_COLLATE is not overriden

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I finally managed to test a FreeBSD 10.0 host, and it seems to respect
LC_ALL before LANG.

Next patch includes just setting LC_ALL (which trumps LC_COLLATE).

-Chema


On Tue, Aug 5, 2014 at 10:14 AM, Eric Blake <eblake@xxxxxxxxxx> wrote:
> On 08/05/2014 11:12 AM, Chema Gonzalez wrote:
>>> Setting LC_ALL= to the empty string risks implementation-defined
>>> behavior.  Also, LC_ALL overrides LANG and LC_COLLATE.  It should be
>>> sufficient to merely do:
>>>
>>>         }}' $temp | LC_ALL=C sort -k 1,1 | tee $temp2 | awk '{
>>
>> Maybe:
>>     }}' $temp | LC_ALL=C LANG=C sort -k 1,1 | tee $temp2 | awk '{
>
> No need to specify LANG=C when LC_ALL is set.  I stand by my shorter line.
>
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux