summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-01-26 17:38:18 +0100
committerraveit65 <[email protected]>2020-01-30 14:30:30 +0100
commit8e1347562751ae089f959e8bca6c3fdbb8db5ed3 (patch)
tree5e71a6692fe25faa031231b2f8d155f4e3d3c9ae
parentcc555ea98b123e89c7dd8fb3fc6168254837bc9e (diff)
downloadengrampa-8e1347562751ae089f959e8bca6c3fdbb8db5ed3.tar.bz2
engrampa-8e1347562751ae089f959e8bca6c3fdbb8db5ed3.tar.xz
fr-process: do not override LC_CTYPE
Closes #354
-rw-r--r--src/fr-process.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/fr-process.c b/src/fr-process.c
index a20bca8..c71386d 100644
--- a/src/fr-process.c
+++ b/src/fr-process.c
@@ -640,8 +640,11 @@ child_setup (gpointer user_data)
{
FrProcess *process = user_data;
- if (process->priv->use_standard_locale)
- putenv ("LC_ALL=C");
+ if (process->priv->use_standard_locale) {
+ putenv ("LC_MESSAGES=C");
+ putenv ("LC_TIME=C");
+ putenv ("LC_NUMERIC=C");
+ }
/* detach from the tty */
@@ -744,8 +747,11 @@ start_current_command (FrProcess *process)
{
int j;
- if (process->priv->use_standard_locale)
- g_print ("\tLC_ALL=C\n");
+ if (process->priv->use_standard_locale) {
+ g_print ("\tLC_MESSAGES=C\n");
+ g_print ("\tLC_TIME=C\n");
+ g_print ("\tLC_NUMERIC=C\n");
+ }
if (info->dir != NULL)
g_print ("\tcd %s\n", info->dir);