summaryrefslogtreecommitdiff
path: root/utils/gdmopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gdmopen.c')
-rw-r--r--utils/gdmopen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/gdmopen.c b/utils/gdmopen.c
index f428296a..b49f51af 100644
--- a/utils/gdmopen.c
+++ b/utils/gdmopen.c
@@ -164,6 +164,17 @@ main (int argc, char *argv[])
if (child_pid == 0) {
char VT_NUMBER[256];
+ if (getenv ("UNSAFE_TO_TRANSLATE") != NULL &&
+ strcmp (getenv ("UNSAFE_TO_TRANSLATE"), "yes") == 0) {
+ putenv ("LANG=C");
+
+ /* portable way to truly unset with putenv? */
+ putenv ("LC_ALL=");
+ putenv ("LC_MESSAGES=");
+ putenv ("LC_ALL");
+ putenv ("LC_MESSAGES");
+ }
+
#ifdef __linux__
putenv ("TERM=linux");
#endif