Merge pull request #11291 from yuwata/fix-11259

meson: check whether C.UTF-8 exists or not and use it if exists
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-01-02 09:36:01 +01:00
committed by GitHub
4 changed files with 25 additions and 3 deletions
+2 -2
View File
@@ -74,9 +74,9 @@ int locale_setup(char ***environment) {
}
if (strv_isempty(add)) {
/* If no locale is configured then default to C.UTF-8. */
/* If no locale is configured then default to compile-time default. */
add = strv_new("LANG=C.UTF-8");
add = strv_new("LANG=" SYSTEMD_DEFAULT_LOCALE);
if (!add)
return -ENOMEM;
}