diff --git a/src/login.c b/src/login.c index ece1ee6..20bc2aa 100644 --- a/src/login.c +++ b/src/login.c @@ -220,8 +220,12 @@ void env_init(struct passwd* pwd) setenv("SHELL", pwd->pw_shell, 1); setenv("USER", pwd->pw_name, 1); setenv("LOGNAME", pwd->pw_name, 1); - setenv("LANG", lang ? lang : "C", 1); + if (lang) + { + setenv("LANG", lang, 1); + } + // Set PATH if specified in the configuration if (strlen(config.path)) {