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

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

 



On Tue, Aug 5, 2014 at 10:09 AM, Eric Blake <eblake@xxxxxxxxxx> wrote:
> On 08/05/2014 10:40 AM, Chema Gonzalez wrote:
>> If the user environment has either LC_ALL or LANG defined, the setting
>> of LC_COLLATE in src/mkbuiltins is overriden. With a non-POSIX locale,
>> the orders of dotcmd (remember that '.' is 0x2e in ascii) and truecmd
>> (':' is 0x3a in ascii) are reversed, which makes the ":" command fail
>> in the bsearch.
>>
>
>> -     }}' $temp | LC_COLLATE=C sort -k 1,1 | tee $temp2 | awk '{
>> +     }}' $temp | LC_ALL= LANG= LC_COLLATE=C sort -k 1,1 | tee $temp2 | awk '{
>
> 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 '{

-Chema

>
> --
> 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