-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exec: stop setting a locale on Unix. (#9449)
The en_US locale can't be used on systems where it is not installed. This is common in container images. On such systems, setting the locale to en_US.UTF-8 causes bash to print unexpected warnings to standard error. When Exec.LogStandardErrorAsError is set, these warnings cause the Task to fail due to logging errors. This changes to no longer set the locale explicitly. The Exec command will now run under the system locale instead of US English. Most tools should functionally behave the same under any locale. Users may still set the locale environment variables themselves through Exec.EnvironmentVariables. The previous behavior can also be restored as it is under a changewave. Fixes #4194
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters