summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-27 11:26:35 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-16 18:01:40 +0200
commit21c72713ae89cfc2c4096c383af9bb482665e0a6 (patch)
treef4a67edf46d21edf5784ad53cebb2d4b603e0a8e
parent9c33d34fe4cd0bc58ea12e5258e595647c9e0b29 (diff)
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.
-rw-r--r--src/core/locale-setup.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/locale-setup.c b/src/core/locale-setup.c
index d7113b9795..daf81d080e 100644
--- a/src/core/locale-setup.c
+++ b/src/core/locale-setup.c
@@ -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) {