]> git.ipfire.org Git - thirdparty/systemd.git/blob - tools/choose-default-locale.sh
sd-bus: if we receive an invalid dbus message, ignore and proceeed
[thirdparty/systemd.git] / tools / choose-default-locale.sh
1 #!/bin/sh
2
3 set -e
4
5 # Fedora uses C.utf8 but Debian uses C.UTF-8
6 if locale -a | grep -xq -E 'C\.(utf8|UTF-8)'; then
7 echo 'C.UTF-8'
8 elif locale -a | grep -xqF 'en_US.utf8'; then
9 echo 'en_US.UTF-8'
10 else
11 echo 'C'
12 fi