systemd: do not use locale C.UTF-8

There's been some long-going talk about extending glibc with support for
the C.UTF-8 locale. Systemd started using this in v240, and the
detection is based on the build environment -- if `locale -a` says that
it can do a C.UTF-8 locale, then it will be used for the target system
as well (see tools/choose-default-locale.sh upstream). As a result, on
my particular configuration services start with LANG=C.UTF-8, and that
breaks the C++ default locale constructor
("locale::facet::_S_create_c_locale name not valid").

Just stick to the en_US.UTF-8 locale here.

Bug: https://github.com/systemd/systemd/issues/11259
Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
1 file changed