]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/choose-default-locale.sh
hashmap: always set key output argument of internal_hashmap_first_key_and_value()
[thirdparty/systemd.git] / tools / choose-default-locale.sh
CommitLineData
990bb60a 1#!/bin/sh
03475e22
YW
2
3set -e
4
5# Fedora uses C.utf8 but Debian uses C.UTF-8
6if locale -a | grep -xq -E 'C\.(utf8|UTF-8)'; then
7 echo 'C.UTF-8'
8elif locale -a | grep -xqF 'en_US.utf8'; then
9 echo 'en_US.UTF-8'
10else
11 echo 'C'
12fi