mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
03475e2232
If C.UTF-8 does not exist, then fallback to en_US.UTF-8 or C.
13 lines
238 B
Bash
Executable File
13 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Fedora uses C.utf8 but Debian uses C.UTF-8
|
|
if locale -a | grep -xq -E 'C\.(utf8|UTF-8)'; then
|
|
echo 'C.UTF-8'
|
|
elif locale -a | grep -xqF 'en_US.utf8'; then
|
|
echo 'en_US.UTF-8'
|
|
else
|
|
echo 'C'
|
|
fi
|