]> git.ipfire.org Git - thirdparty/systemd.git/commit
localed: Run locale-gen if available to generate missing locale 9864/head
authorMatthias Klumpp <matthias@tenstral.net>
Fri, 8 Jan 2021 22:59:38 +0000 (23:59 +0100)
committerMatthias Klumpp <matthias@tenstral.net>
Tue, 12 Jan 2021 22:15:12 +0000 (23:15 +0100)
commit8f20232fcb52dbe6255f3df6101fc057af90bcfa
treeea0fc53090f6b2bc14e1a72a93ef3e24a2bd37d9
parentbd47b0dac4a1ff6e686c99b9958693e86d44007b
localed: Run locale-gen if available to generate missing locale

This change improves integration with distributions using locale-gen to
generate missing locale on-demand, like Debian-based distributions
(Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
We only ever enable new locales for generation, and never disable them.
Furthermore, we only generate UTF-8 locale.

This feature is only used if explicitly enabled at compile-time, and
will also be inert at runtime if the locale-gen binary is missing.
meson.build
meson_options.txt
src/locale/keymap-util.c
src/locale/keymap-util.h
src/locale/localectl.c
src/locale/localed.c