blob: a7f946d693a2e6fda1717b7ce4431a2c6185e49d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/session.c b/session.c
index e032de6..44db2bb 100644
--- a/session.c
+++ b/session.c
@@ -1196,6 +1196,10 @@ do_setup_env(Session *s, const char *shell)
if (getenv("TZ"))
child_set_env(&env, &envsize, "TZ", getenv("TZ"));
+ /* NixOS path to the glibc locale archive, to be set in the upstart job */
+ if (getenv("LOCALE_ARCHIVE"))
+ child_set_env(&env, &envsize, "LOCALE_ARCHIVE", getenv("LOCALE_ARCHIVE"));
+
/* Set custom environment options from RSA authentication. */
if (!options.use_login) {
while (custom_environment) {
|