scripted-diff: Use C.UTF-8 locale in Guix scripts
What changed, and why it matters
This commit is a routine cleanup that changes the locale setting in Bitcoin Core's Guix build scripts from the old ASCII-only 'C' locale to the modern 'C.UTF-8' locale. It is not a security fix and does not change any behavior that could be exploited. The stated purpose is to reduce harmless warning messages from Qt tools during builds.
No security action required. Treat as a normal build-hygiene commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A scripted diff replaces every occurrence of ‘export LC_ALL=C’ with ‘export LC_ALL=C.UTF-8’ across 15 files under contrib/guix. The change affects only build/packaging/codesigning helper scripts used in the reproducible Guix build environment. It does not touch consensus, networking, wallet, or runtime code. The commit message explicitly frames this as a log-cleanliness and consistency improvement, not a security change.
Changed components
contrib/guix/guix-attestcontrib/guix/guix-buildcontrib/guix/guix-cleancontrib/guix/guix-codesigncontrib/guix/guix-verifycontrib/guix/libexec/build_linux.shcontrib/guix/libexec/build_linux_gui.shcontrib/guix/libexec/build_macos.shcontrib/guix/libexec/build_macos_gui.shcontrib/guix/libexec/build_win.shcontrib/guix/libexec/build_win_gui.shcontrib/guix/libexec/codesign.shcontrib/guix/libexec/package.shcontrib/guix/libexec/prelude.bashcontrib/guix/libexec/setup.shInspect captured patch +15 / −15
diff --git a/contrib/guix/guix-attest b/contrib/guix/guix-attest
index 3d70731c..1827dfe0 100755
--- a/contrib/guix/guix-attest
+++ b/contrib/guix/guix-attest
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -e -o pipefail
# Source the common prelude, which:
diff --git a/contrib/guix/guix-build b/contrib/guix/guix-build
index 9679e24b..a80411df 100755
--- a/contrib/guix/guix-build
+++ b/contrib/guix/guix-build
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# Source the common prelude, which:
diff --git a/contrib/guix/guix-clean b/contrib/guix/guix-clean
index 32258cd7..434271de 100755
--- a/contrib/guix/guix-clean
+++ b/contrib/guix/guix-clean
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -e -o pipefail
# Source the common prelude, which:
diff --git a/contrib/guix/guix-codesign b/contrib/guix/guix-codesign
index 8cc6993b..0300c368 100755
--- a/contrib/guix/guix-codesign
+++ b/contrib/guix/guix-codesign
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -e -o pipefail
# Source the common prelude, which:
diff --git a/contrib/guix/guix-verify b/contrib/guix/guix-verify
index 02ae0227..27d5d14e 100755
--- a/contrib/guix/guix-verify
+++ b/contrib/guix/guix-verify
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -e -o pipefail
# Source the common prelude, which:
diff --git a/contrib/guix/libexec/build_linux.sh b/contrib/guix/libexec/build_linux.sh
index 15dc77ab..492890ec 100755
--- a/contrib/guix/libexec/build_linux.sh
+++ b/contrib/guix/libexec/build_linux.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# shellcheck source=setup.sh
diff --git a/contrib/guix/libexec/build_linux_gui.sh b/contrib/guix/libexec/build_linux_gui.sh
index d14dda00..218bc0a9 100755
--- a/contrib/guix/libexec/build_linux_gui.sh
+++ b/contrib/guix/libexec/build_linux_gui.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# shellcheck source=setup.sh
diff --git a/contrib/guix/libexec/build_macos.sh b/contrib/guix/libexec/build_macos.sh
index 213ae9a6..1b4af8fd 100755
--- a/contrib/guix/libexec/build_macos.sh
+++ b/contrib/guix/libexec/build_macos.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# shellcheck source=setup.sh
diff --git a/contrib/guix/libexec/build_macos_gui.sh b/contrib/guix/libexec/build_macos_gui.sh
index 97f1932d..9383eac3 100755
--- a/contrib/guix/libexec/build_macos_gui.sh
+++ b/contrib/guix/libexec/build_macos_gui.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# shellcheck source=setup.sh
diff --git a/contrib/guix/libexec/build_win.sh b/contrib/guix/libexec/build_win.sh
index fc3b46aa..ce1f7fd4 100755
--- a/contrib/guix/libexec/build_win.sh
+++ b/contrib/guix/libexec/build_win.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# shellcheck source=setup.sh
diff --git a/contrib/guix/libexec/build_win_gui.sh b/contrib/guix/libexec/build_win_gui.sh
index aba93eb0..94f21166 100755
--- a/contrib/guix/libexec/build_win_gui.sh
+++ b/contrib/guix/libexec/build_win_gui.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# shellcheck source=setup.sh
diff --git a/contrib/guix/libexec/codesign.sh b/contrib/guix/libexec/codesign.sh
index 9b7f085d..517c7430 100755
--- a/contrib/guix/libexec/codesign.sh
+++ b/contrib/guix/libexec/codesign.sh
@@ -2,7 +2,7 @@
# Copyright (c) 2021-present The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -e -o pipefail
# Environment variables for determinism
diff --git a/contrib/guix/libexec/package.sh b/contrib/guix/libexec/package.sh
index fd080ccf..fdecd9a0 100755
--- a/contrib/guix/libexec/package.sh
+++ b/contrib/guix/libexec/package.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -e -o pipefail
(
diff --git a/contrib/guix/libexec/prelude.bash b/contrib/guix/libexec/prelude.bash
index 994f6c5c..38a040b7 100644
--- a/contrib/guix/libexec/prelude.bash
+++ b/contrib/guix/libexec/prelude.bash
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
source contrib/shell/realpath.bash
diff --git a/contrib/guix/libexec/setup.sh b/contrib/guix/libexec/setup.sh
index e8d70d59..c6858c98 100755
--- a/contrib/guix/libexec/setup.sh
+++ b/contrib/guix/libexec/setup.sh
@@ -2,7 +2,7 @@
# Copyright (c) The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
-export LC_ALL=C
+export LC_ALL=C.UTF-8
set -o errexit -o pipefail
# Environment variables for determinism
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.