Do not set LANG=C in every child environment.

LANG does not have to be set and setting it to default to the default
does not add any value.
This commit is contained in:
Harald Hoyer 2013-06-27 11:26:35 +02:00 committed by Lennart Poettering
parent 9c33d34fe4
commit 21c72713ae

View file

@ -117,14 +117,6 @@ int locale_setup(void) {
log_warning("Failed to read /etc/locale.conf: %s", strerror(-r));
}
if (!variables[VARIABLE_LANG]) {
variables[VARIABLE_LANG] = strdup("C");
if (!variables[VARIABLE_LANG]) {
r = -ENOMEM;
goto finish;
}
}
for (i = 0; i < _VARIABLE_MAX; i++) {
if (variables[i]) {
if (setenv(variable_names[i], variables[i], 1) < 0) {