diff --git a/src/Tasks/Exec.cs b/src/Tasks/Exec.cs index 21bf75ad407..dbf4be1fc51 100644 --- a/src/Tasks/Exec.cs +++ b/src/Tasks/Exec.cs @@ -591,7 +591,7 @@ protected internal override void AddCommandLineCommands(CommandLineBuilderExtens { commandLine.AppendSwitch("-c"); commandLine.AppendTextUnquoted(" \""); - commandLine.AppendTextUnquoted(". "); + commandLine.AppendTextUnquoted("export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; . "); commandLine.AppendFileNameIfNotNull(batchFileForCommandLine); commandLine.AppendTextUnquoted("\""); }