Skip to content

Use English diagnostics in nested MSVC codec builds - #237

Merged
danoli3 merged 5 commits into
masterfrom
fix/msvc-bundled-output
Oct 29, 2026
Merged

danoli3 merged 5 commits into
masterfrom
fix/msvc-bundled-output

Conversation

@danoli3

@danoli3 danoli3 commented Oct 29, 2026

Copy link
Copy Markdown
Owner

On localized Windows installations, nested MSVC codec builds can produce garbled progress messages and banners because MSBuild 17.14 emits UTF-8 through build-tool pipes that expect another code page. This matches dotnet/msbuild#11850.

Use English compiler and MSBuild diagnostics by default for bundled codec configure/build subprocesses, including HEIF, de265 and JPEG XL. Both stages receive the same language so Ninja detects the correct /showIncludes prefix. A separate MSVC build directory avoids reusing a localized compiler cache in existing trees. Developers can restore localized dependency messages with -DFREEIMAGE_CODEC_ENGLISH_MESSAGES=OFF; the README documents the setting.

Validation:

  • Local nested-build fixture passes with the MSVC environment branch exercised: default, opt-out, re-enable, paths containing spaces, header-triggered rebuilds, and compiler error/exit-status forwarding.
  • The native non-MSVC fixture preserves the caller's language settings.
  • Adds Windows Server 2022 CI with VS 2022 and Ninja, starting from Chinese language environment settings.

Fixes #236.

@danoli3
danoli3 merged commit 0e7c284 into master Oct 29, 2026
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Garbled Console Output When Building Dependencies Such as HEIF and de265 with MSVC

1 participant