From 8916f7967e1088e7b6157f708c2c85119d759fb2 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:29:18 +0100 Subject: [PATCH] scripted-diff: Use C.UTF-8 locale in Guix scripts The C.UTF-8 locale is set by default in `guix shell`, and there is no reason to avoid it nowadays. This change also silences superfluous warnings from Qt tools, making build logs cleaner and other issues easier to spot. Locales in the `guix-*` launch scripts have been updated as well for consistency with the rest of the codebase. -BEGIN VERIFY SCRIPT- sed -i "s/\/export LC_ALL=C.UTF-8/g" \ $( git grep -l "export LC_ALL=C" ./contrib/guix/* ) -END VERIFY SCRIPT- --- contrib/guix/guix-attest | 2 +- contrib/guix/guix-build | 2 +- contrib/guix/guix-clean | 2 +- contrib/guix/guix-codesign | 2 +- contrib/guix/guix-verify | 2 +- contrib/guix/libexec/build_linux.sh | 2 +- contrib/guix/libexec/build_linux_gui.sh | 2 +- contrib/guix/libexec/build_macos.sh | 2 +- contrib/guix/libexec/build_macos_gui.sh | 2 +- contrib/guix/libexec/build_win.sh | 2 +- contrib/guix/libexec/build_win_gui.sh | 2 +- contrib/guix/libexec/codesign.sh | 2 +- contrib/guix/libexec/package.sh | 2 +- contrib/guix/libexec/prelude.bash | 2 +- contrib/guix/libexec/setup.sh | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/contrib/guix/guix-attest b/contrib/guix/guix-attest index 3d70731cbdb..1827dfe0226 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 9679e24ba85..a80411df522 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 32258cd7477..434271de1ea 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 8cc6993b824..0300c3684ca 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 02ae022741b..27d5d14ee7c 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 15dc77ab138..492890ecc1c 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 d14dda00293..218bc0a952c 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 213ae9a6c7f..1b4af8fd9a5 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 97f1932d85e..9383eac34ce 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 fc3b46aa38e..ce1f7fd4d03 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 aba93eb0654..94f21166392 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 9b7f085d3ab..517c74301b1 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 fd080ccf293..fdecd9a0906 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 994f6c5cdf7..38a040b773d 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 e8d70d590b3..c6858c9862d 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