Skip to content

Commit 13a34c6

Browse files
author
John Luo
authored
Set locale for ubuntu 18.04 (#31649)
1 parent cceefc7 commit 13a34c6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.azure/pipelines/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ stages:
701701
pool:
702702
vmImage: 'ubuntu-18.04'
703703
variables:
704+
LC_ALL: 'en_US.UTF-8'
705+
LANG: 'en_US.UTF-8'
706+
LANGUAGE: 'en_US.UTF-8'
704707
DotNetCoreSdkDir: $(Agent.ToolsDirectory)/dotnet
705708
# This isn't needed in the path because build does not need to _use_ global tools.
706709
DOTNET_CLI_HOME: $(System.DefaultWorkingDirectory)

.azure/pipelines/jobs/default-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ jobs:
116116
- DOTNET_CLI_HOME: $(System.DefaultWorkingDirectory)
117117
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
118118
- TeamName: AspNetCore
119+
- ${{ if eq(parameters.agentOs, 'Linux') }}:
120+
- LC_ALL: 'en_US.UTF-8'
121+
- LANG: 'en_US.UTF-8'
122+
- LANGUAGE: 'en_US.UTF-8'
119123
- ${{ if and(eq(parameters.installJdk, 'true'), eq(parameters.agentOs, 'Windows')) }}:
120124
- JAVA_HOME: $(Agent.BuildDirectory)\.tools\jdk\win-x64
121125
- ${{ if or(ne(parameters.codeSign, true), ne(variables['System.TeamProject'], 'internal')) }}:

0 commit comments

Comments
 (0)