locale-util: add new helper locale_is_installed()
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Apr 2020 16:30:56 +0000 (18:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 May 2020 15:23:23 +0000 (17:23 +0200)
commit23fa786ca67ed3a32930ff1a7b175ac823db187c
tree93efff66e552c2929e1f2401e28693f833f0fe46
parent5cea17a17742271638a0e914f169841dae01441c
locale-util: add new helper locale_is_installed()

This new helper checks whether the specified locale is installed. It's
distinct from locale_is_valid() which just superficially checks if a
string looks like something that could be a valid locale.

Heavily inspired by @jsynacek's #13964.

Replaces: #13964
src/basic/locale-util.c
src/basic/locale-util.h