localed: Run locale-gen if available to generate missing locale
authorMatthias Klumpp <matthias@tenstral.net>
Fri, 8 Jan 2021 22:59:38 +0000 (23:59 +0100)
committerRaspbian forward porter <root@raspbian.org>
Thu, 26 Aug 2021 17:32:43 +0000 (18:32 +0100)
commit39c6453576b7393baae2dac5506d02cc2e7e3cf1
treebd20224ff2c302d54ddd1901b2dfad927981f76b
parentc245cd53d9e04b297a8a6894c497e87502b40120
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.

(cherry picked from commit 8f20232fcb52dbe6255f3df6101fc057af90bcfa)

Gbp-Pq: Name localed-Run-locale-gen-if-available-to-generate-missing-l.patch
meson.build
meson_options.txt
src/locale/keymap-util.c
src/locale/keymap-util.h
src/locale/localectl.c
src/locale/localed.c