mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
9ee03516df
Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
13 lines
268 B
Bash
Executable File
13 lines
268 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
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
|