mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-17 14:17:50 +00:00
locale: set LANG on Arch
This variable is defined in /etc/rc.conf
This commit is contained in:
committed by
Lennart Poettering
parent
424313503a
commit
f2fcd59ffa
@@ -76,6 +76,14 @@ int locale_setup(void) {
|
||||
if (r != -ENOENT)
|
||||
log_warning("Failed to read /etc/sysconfig/i18n: %s", strerror(-r));
|
||||
}
|
||||
#elif defined(TARGET_ARCH)
|
||||
if ((r = parse_env_file("/etc/rc.conf", NEWLINE,
|
||||
"LOCALE", &variables[VARIABLE_LANG],
|
||||
NULL)) < 0) {
|
||||
|
||||
if (r != -ENOENT)
|
||||
log_warning("Failed to read /etc/rc.conf: %s", strerror(-r));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Override distribution-specific options with the
|
||||
|
||||
Reference in New Issue
Block a user