summaryrefslogtreecommitdiff
path: root/src/locale-setup.c
diff options
context:
space:
mode:
authorAlexey Shabalin <a.shabalin@gmail.com>2011-02-08 12:50:56 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-08 12:52:06 +0100
commita338bab5d0603a179befce062bc6fc8a6521a232 (patch)
tree3d6326e544326cf1f2054b2867b519c16be95bf2 /src/locale-setup.c
parent8d7cb6e0686214a7f57387d5c66cbc667a7f4659 (diff)
build-sys: initial support ALTLinux
Hi all! I added basic support for ALTLinux. Please see patch or http://git.altlinux.org/people/shaba/packages/systemd.git?p=systemd.git;a=shortlog;h=refs/heads/altlinux Thanks.
Diffstat (limited to 'src/locale-setup.c')
-rw-r--r--src/locale-setup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/locale-setup.c b/src/locale-setup.c
index 086647b720..9ac68d2f39 100644
--- a/src/locale-setup.c
+++ b/src/locale-setup.c
@@ -155,6 +155,16 @@ 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