mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
locale: unify some code between fedora and altlinux
This commit is contained in:
parent
a338bab5d0
commit
022ef2064f
@ -115,7 +115,7 @@ int locale_setup(void) {
|
||||
log_warning("Failed to read /etc/locale.conf: %s", strerror(-r));
|
||||
}
|
||||
|
||||
#ifdef TARGET_FEDORA
|
||||
#if defined(TARGET_FEDORA) || defined(TARGET_ALTLINUX)
|
||||
if (r <= 0 &&
|
||||
(r = parse_env_file("/etc/sysconfig/i18n", NEWLINE,
|
||||
"LANG", &variables[VARIABLE_LANG],
|
||||
@ -155,16 +155,6 @@ int locale_setup(void) {
|
||||
log_warning("Failed to read /etc/rc.conf: %s", strerror(-r));
|
||||
}
|
||||
|
||||
#elif defined(TARGET_ALTLINUX)
|
||||
if (r <= 0 &&
|
||||
(r = parse_env_file("/etc/sysconfig/i18n", NEWLINE,
|
||||
"LANG", &variables[VARIABLE_LANG],
|
||||
NULL)) < 0) {
|
||||
|
||||
if (r != -ENOENT)
|
||||
log_warning("Failed to read /etc/sysconfig/i18n: %s", strerror(-r));
|
||||
}
|
||||
|
||||
#elif defined(TARGET_GENTOO)
|
||||
/* Gentoo's openrc expects locale variables in /etc/env.d/
|
||||
* These files are later compiled by env-update into shell
|
||||
|
Loading…
x
Reference in New Issue
Block a user