From f2fcd59ffaaa97aaa238089cde5225f0e1086904 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 18 Sep 2010 23:43:53 +0100 Subject: [PATCH] locale: set LANG on Arch This variable is defined in /etc/rc.conf --- src/locale-setup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/locale-setup.c b/src/locale-setup.c index 923be045..675a739a 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 -- 2.39.5