]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/locale-util.c
locale-util: suppress non-UTF-8 locales when enumerating them 13042/head
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Jul 2019 11:38:43 +0000 (13:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 14 Jul 2019 09:05:34 +0000 (11:05 +0200)
commita7d9fccd0e15bed540bed897569d8d9e00f09125
tree0bab0c1a9cebdc76a09d3f4cf0fbb6dc86d2bb1f
parent13f45806268bca2c20caee4d042f12dfe68f5a1f
locale-util: suppress non-UTF-8 locales when enumerating them

Let's hide non-UTF-8 locales by default. It's 2019 after all.

Let's add an undocumented env var to reenable listing them though.

This should substantially shorten the list of choices we offer users,
and only show realistic choices.

note that only firstboot and localectl make use of this information, and
both allow configuration of values outside of these lists, hence all
this change does is hide legacy options, but they are still available if
you know what you do, and that's how it should be.
docs/ENVIRONMENT.md
src/basic/locale-util.c