Commit f2fcd59f authored by Tom Gundersen's avatar Tom Gundersen Committed by Lennart Poettering
Browse files

locale: set LANG on Arch

This variable is defined in /etc/rc.conf
parent 42431350
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment