From 81ff17ddc8aab76fb4db1fcf1495f602d29d2e6e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 28 Apr 2025 13:34:18 +0300 Subject: [PATCH] switching to computer english --- bash/deb-update.bash | 4 +--- bash/iwd-wifi.bash | 2 +- bash/usr-local-bin/beeper | 2 +- bash/usr-local-bin/element | 2 +- bash/usr-local-bin/element-tor | 2 +- bash/usr-local-bin/go | 1 + bash/usr-local-bin/nheko-tor | 4 ++-- bash/usr-local-bin/pacman | 2 +- bash/usr-local-bin/qbittorrent | 1 + bash/usr-local-bin/schildichat-tor | 2 +- bash/usr-local-bin/syncplay | 1 + 11 files changed, 12 insertions(+), 11 deletions(-) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index ab872d4..608939b 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -6,9 +6,7 @@ set -x # This is said to be a poor practice that should only be used for debugging -#export LC_ALL=C.utf8 -# More universally supported even on older systems -export LC_ALL="en_DK.UTF-8" +export LC_ALL=C.utf8 # if hash checks that the command exists if hash apt-get 2> /dev/null; then diff --git a/bash/iwd-wifi.bash b/bash/iwd-wifi.bash index 7122121..d9e3a11 100755 --- a/bash/iwd-wifi.bash +++ b/bash/iwd-wifi.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash - +export LC_ALL=C.utf8 # A simple script to list networks iwd detects and give instruction for # connecting to it. Heavily inspired by `man iwctl` diff --git a/bash/usr-local-bin/beeper b/bash/usr-local-bin/beeper index ab5058d..0781f31 100755 --- a/bash/usr-local-bin/beeper +++ b/bash/usr-local-bin/beeper @@ -18,7 +18,7 @@ elif [ -f "$HOME/Persistent/AppImages/beeper.appimage" ]; then mkdir -vp "$HOME/Persistent/AppImages/beeper.appimage.home" # We are using Tor, so we are American English, UTC is enforced anyway, # but probably won't hurt. - export LC_ALL=en_US.utf8 + export LC_ALL=C.utf8 export TZ=UTC $HOME/Persistent/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations --proxy-server=socks5://127.0.0.1:9050 "$@" else diff --git a/bash/usr-local-bin/element b/bash/usr-local-bin/element index 794a513..0089fe6 100755 --- a/bash/usr-local-bin/element +++ b/bash/usr-local-bin/element @@ -18,7 +18,7 @@ elif [ -f "$HOME/Persistent/AppImages/element.appimage" ]; then mkdir -vp "$HOME/Persistent/AppImages/element.appimage.home" # We are using Tor, so we are American English, UTC is enforced anyway, # but probably won't hurt. - export LC_ALL=en_US.utf8 + export LC_ALL=C.utf8 export TZ=UTC $HOME/Persistent/AppImages/beeper.appimage --ozone-platform=wayland --enable-features=WaylandWindowDecorations --proxy-server=socks5://127.0.0.1:9050 "$@" elif [ -f /var/lib/flatpak/exports/bin/im.riot.Riot ]; then diff --git a/bash/usr-local-bin/element-tor b/bash/usr-local-bin/element-tor index 3e1bb52..4c28024 100755 --- a/bash/usr-local-bin/element-tor +++ b/bash/usr-local-bin/element-tor @@ -3,5 +3,5 @@ set -x # proxy authentication is not supported # https://github.com/vector-im/element-web/issues/3320 -flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@" +flatpak run --env=LC_ALL=C.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations "$@" set +x diff --git a/bash/usr-local-bin/go b/bash/usr-local-bin/go index 28fa777..74a5a43 100755 --- a/bash/usr-local-bin/go +++ b/bash/usr-local-bin/go @@ -5,6 +5,7 @@ set -x +export LC_ALL=C.utf8 # TODO: this should be automatic export GOVERSION=1.21 diff --git a/bash/usr-local-bin/nheko-tor b/bash/usr-local-bin/nheko-tor index 9b79c24..b120749 100755 --- a/bash/usr-local-bin/nheko-tor +++ b/bash/usr-local-bin/nheko-tor @@ -4,8 +4,8 @@ # desired set -x if [[ "$1" == -* ]]; then - flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master "$@" + flatpak run --env=LC_ALL=C.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master "$@" else - flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --compact --profile "$@" + flatpak run --env=LC_ALL=C.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --compact --profile "$@" fi set +x diff --git a/bash/usr-local-bin/pacman b/bash/usr-local-bin/pacman index fdfaf5c..2e4f481 100755 --- a/bash/usr-local-bin/pacman +++ b/bash/usr-local-bin/pacman @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -x -export LC_ALL=en_DK.UTF-8 +export LC_ALL=C.utf8 # if yay is installed and we aren't root, run it instead if [[ -f /usr/bin/yay && $(id -u) != 0 ]]; then diff --git a/bash/usr-local-bin/qbittorrent b/bash/usr-local-bin/qbittorrent index f49abc0..51fa064 100755 --- a/bash/usr-local-bin/qbittorrent +++ b/bash/usr-local-bin/qbittorrent @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -x +export LC_ALL=C.utf8 sudo systemctl start nordvpnd.socket sleep 5 sudo systemctl start nordvpnd.service diff --git a/bash/usr-local-bin/schildichat-tor b/bash/usr-local-bin/schildichat-tor index 1748a41..069f610 100755 --- a/bash/usr-local-bin/schildichat-tor +++ b/bash/usr-local-bin/schildichat-tor @@ -3,5 +3,5 @@ set -x # proxy authentication is not supported # https://github.com/vector-im/element-web/issues/3320 -flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@" +flatpak run --env=LC_ALL=C.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform=wayland --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@" set +x diff --git a/bash/usr-local-bin/syncplay b/bash/usr-local-bin/syncplay index c8b3989..03ab33c 100755 --- a/bash/usr-local-bin/syncplay +++ b/bash/usr-local-bin/syncplay @@ -3,6 +3,7 @@ # Quick syncplay wrapper set -x +export LC_ALL=C.utf8 if [ -f "/tmp/syncplay.$(id -u).$(date -I)" ]; then echo "Syncplay has been touched today"