[PATCH] profiles: set LC_MESSAGES to C.UTF-8, not C

Sam James <[email protected]> Sat, 27 Jun 2026 17:28:13 +0100
Newsgroups gmane.linux.gentoo.devel
Message-ID <8a49cd1e3764bf11b73bfed3006ec6abd414f6c4.1782577691.git.sam@gentoo.org>
Use C.UTF-8, which we can rely on with both modern glibc (*) and also other
libcs like musl given it is POSIX, rather than C.

Setting C keeps breaking testsuites and no reason has been presented to
keep it that way rather than use C.UTF-8.

(*) We patched it in for years but it is upstream since a few releases ago.

Bug: https://bugs.gentoo.org/913903
Bug: https://bugs.gentoo.org/970495
Signed-off-by: Sam James <[email protected]>
---
 profiles/base/make.defaults     | 2 +-
 profiles/embedded/make.defaults | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults
index 716424f8e7b41..e378a0d5f3d2f 100644
--- a/profiles/base/make.defaults
+++ b/profiles/base/make.defaults
@@ -140,7 +140,7 @@ UNINSTALL_IGNORE="/boot/dtbs/* /lib/modules/* /var/run /var/lock"
 
 # Andreas K. Hüttel <[email protected]> (2013-08-23)
 # Make emerge messages default to English as per Council decision
-LC_MESSAGES="C"
+LC_MESSAGES="C.UTF-8"
 
 # Brian Dolbec <[email protected]> (2017-06-16)
 # disable twisted's plugin cache update to prevent access violations
diff --git a/profiles/embedded/make.defaults b/profiles/embedded/make.defaults
index 3a93ab4c0343a..c4403fb78c7df 100644
--- a/profiles/embedded/make.defaults
+++ b/profiles/embedded/make.defaults
@@ -78,7 +78,7 @@ PYTHONDONTWRITEBYTECODE="1"
 
 # Andreas K. Hüttel <[email protected]> (2013-08-23)
 # Make emerge messages default to English as per Council decision
-LC_MESSAGES="C"
+LC_MESSAGES="C.UTF-8"
 
 # Brian Dolbec <[email protected]> (2017-06-16)
 # disable twisted's plugin cache update to prevent access violations
-- 
2.54.0