summaryrefslogtreecommitdiff
path: root/src/locale-setup.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2010-09-18 23:43:53 +0100
committerLennart Poettering <lennart@poettering.net>2010-09-20 23:14:28 +0200
commitf2fcd59ffaaa97aaa238089cde5225f0e1086904 (patch)
tree0bb9abffc71bb617462927ca94f7055a5aa6d793 /src/locale-setup.c
parent424313503a6813bd78a7e8524668044ab61f3fb3 (diff)
locale: set LANG on Arch
This variable is defined in /etc/rc.conf
Diffstat (limited to 'src/locale-setup.c')
-rw-r--r--src/locale-setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/locale-setup.c b/src/locale-setup.c
index 923be045e1..675a739a5c 100644
--- a/src/locale-setup.c
+++ b/src/locale-setup.c
@@ -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