Thread (5 messages) flat view 5 messages, 4 authors, 2021-05-05

Re: [PATCH] kbuild: replace LANG=C with LC_ALL=C

From: Masahiro Yamada <masahiroy@kernel.org>
Date: 2021-05-05 17:51:14
Also in: linux-kbuild, linux-kselftest, linuxppc-dev, lkml

On Tue, Apr 27, 2021 at 4:30 AM Matthieu Baerts
[off-list ref] wrote:
Hi,

Thank you for the patch!

On 24/04/2021 13:48, Masahiro Yamada wrote:
quoted
LANG gives a weak default to each LC_* in case it is not explicitly
defined. LC_ALL, if set, overrides all other LC_* variables.

  LANG  <  LC_CTYPE, LC_COLLATE, LC_MONETARY, LC_NUMERIC, ...  <  LC_ALL

This is why documentation such as [1] suggests to set LC_ALL in build
scripts to get the deterministic result.

LANG=C is not strong enough to override LC_* that may be set by end
users.

[1]: https://reproducible-builds.org/docs/locales/

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/powerpc/boot/wrapper                          | 2 +-
 scripts/nsdeps                                     | 2 +-
 scripts/recordmcount.pl                            | 2 +-
 scripts/setlocalversion                            | 2 +-
 scripts/tags.sh                                    | 2 +-
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 2 +-
Acked-by: Matthieu Baerts <redacted> (mptcp)

Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

Applied to linux-kbuild.


-- 
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help