Skip to content

Commit f4fcffd

Browse files
gfraiteurclaude
andcommitted
Add DOTNET_CLI_UI_LANGUAGE=en to Docker containers
This forces .NET CLI/MSBuild to use English output regardless of host locale settings. The existing LC_ALL setting doesn't affect .NET CLI which uses its own language configuration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f344680 commit f4fcffd

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ENV RUNNING_IN_DOCKER=TRUE
1717
# Set locale for consistent behavior regardless of host locale
1818
ENV LANG=C.UTF-8
1919
ENV LC_ALL=C.UTF-8
20+
ENV DOTNET_CLI_UI_LANGUAGE=en
2021

2122
# Add Windows PowerShell to PATH (pwsh added later by PowershellComponent)
2223
ENV PATH="C:\Windows\System32\WindowsPowerShell\v1.0;${PATH}"

Dockerfile.claude

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ENV RUNNING_IN_DOCKER=TRUE
1717
# Set locale for consistent behavior regardless of host locale
1818
ENV LANG=C.UTF-8
1919
ENV LC_ALL=C.UTF-8
20+
ENV DOTNET_CLI_UI_LANGUAGE=en
2021

2122
# Add Windows PowerShell to PATH (pwsh added later by PowershellComponent)
2223
ENV PATH="C:\Windows\System32\WindowsPowerShell\v1.0;${PATH}"

src/PostSharp.Engineering.BuildTools/Docker/PrologComponent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public override void WriteDockerfile( TextWriter writer )
3333
# Set locale for consistent behavior regardless of host locale
3434
ENV LANG=C.UTF-8
3535
ENV LC_ALL=C.UTF-8
36+
ENV DOTNET_CLI_UI_LANGUAGE=en
3637
3738
# Add Windows PowerShell to PATH (pwsh added later by PowershellComponent)
3839
ENV PATH="C:\Windows\System32\WindowsPowerShell\v1.0;${PATH}"

0 commit comments

Comments
 (0)