mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-12 15:08:55 +07:00
locale: full fledged /etc/default/locale support for debian
debian uses /etc/default/locale for all locale setup, this patch adds full support for it to systemd.
This commit is contained in:
parent
964d124efa
commit
34f0fd8187
@ -140,6 +140,18 @@ int locale_setup(void) {
|
||||
if (r <= 0 &&
|
||||
(r = parse_env_file("/etc/default/locale", NEWLINE,
|
||||
"LANG", &variables[VARIABLE_LANG],
|
||||
"LC_CTYPE", &variables[VARIABLE_LC_CTYPE],
|
||||
"LC_NUMERIC", &variables[VARIABLE_LC_NUMERIC],
|
||||
"LC_TIME", &variables[VARIABLE_LC_TIME],
|
||||
"LC_COLLATE", &variables[VARIABLE_LC_COLLATE],
|
||||
"LC_MONETARY", &variables[VARIABLE_LC_MONETARY],
|
||||
"LC_MESSAGES", &variables[VARIABLE_LC_MESSAGES],
|
||||
"LC_PAPER", &variables[VARIABLE_LC_PAPER],
|
||||
"LC_NAME", &variables[VARIABLE_LC_NAME],
|
||||
"LC_ADDRESS", &variables[VARIABLE_LC_ADDRESS],
|
||||
"LC_TELEPHONE", &variables[VARIABLE_LC_TELEPHONE],
|
||||
"LC_MEASUREMENT", &variables[VARIABLE_LC_MEASUREMENT],
|
||||
"LC_IDENTIFICATION", &variables[VARIABLE_LC_IDENTIFICATION],
|
||||
NULL)) < 0) {
|
||||
|
||||
if (r != -ENOENT)
|
||||
|
Loading…
Reference in New Issue
Block a user