X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Flocale-setup.c;fp=src%2Fcore%2Flocale-setup.c;h=daf81d080e026f92c8ac60c443d5f92b1562195d;hb=21c72713ae89cfc2c4096c383af9bb482665e0a6;hp=d7113b9795695e6de0dc20cedd7a0691c09d8497;hpb=9c33d34fe4cd0bc58ea12e5258e595647c9e0b29;p=elogind.git diff --git a/src/core/locale-setup.c b/src/core/locale-setup.c index d7113b979..daf81d080 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) {