[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] maint: set LANG=C instead of LC_ALL=C
From: |
Eric Blake |
Subject: |
Re: [PATCH] maint: set LANG=C instead of LC_ALL=C |
Date: |
Thu, 10 Aug 2017 14:14:57 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/10/2017 12:59 PM, Paul Eggert wrote:
> Daniel P. Berrange wrote:
>> It is sometimes neccesssary to override the locale when running
>> build commands from make rules, but as maint.mk set LC_ALL, it
>> is impossible to selectively override rules e.g. LC_CTYPE=C.UTF-8
>> will have no effect if LC_ALL is already set.
>
> Why not unset LC_ALL?
You still want a sane fallback for all the categories that you are not
explicitly setting. It's harder to type:
LANG=C LC_CTYPE=C.UTF-8 env -u LC_ALL foo
than it is to type
LC_CTYPE=C.UTF-8 foo
where we know that LANG=C is already set and LC_ALL is already
out-of-the-way.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
Re: [PATCH] maint: set LANG=C instead of LC_ALL=C, Eric Blake, 2017/08/10