Skip to content

Fix TeX Live builds that pick up Git for Windows Perl - #350

Open
cu1ch3n wants to merge 2 commits into
mainfrom
fix/windows-texlive-perl
Open

cu1ch3n wants to merge 2 commits into
mainfrom
fix/windows-texlive-perl

Conversation

@cu1ch3n

@cu1ch3n cu1ch3n commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What and why

On native Windows, TeX Live can launch latexmk with the Perl from Git for Windows when external Perl is enabled. On the Windows test machine, that combination failed to write main.aux in a project with Chinese characters in its path. An ASCII-path project produced a PDF but BibTeX could not open the existing refs.bib, leaving its citation unresolved.

Use TeX Live's bundled Perl for latexmk when the first perl.exe on PATH is from MSYS. The override is specific to the child latexmk process and preserves the general TeX Live Perl setting. Include the override in the cache identity so chapter reviews rebuild older seeds that could contain unresolved citations.

Follow-up to #340, related to #346.

How it was checked

  • Reproduced both failures at 31bd0fee on native Windows 11 with TeX Live 2026 and latexmk 4.88.
  • Rebuilt the same three fixtures with the fix. ASCII and Chinese paths produced readable PDFs with the expected citations and bibliography, and the plain Chinese-path manuscript compiled.
  • Ran six focused review-engine tests on native Windows with external Perl still enabled. They cover PATH order, compiler environment, seed reuse and build progress.
  • Checked that Kpathsea sees the override for latexmk while another TeX Live program still sees the external Perl setting.
  • Ran application typecheck and build, and npm --prefix engine run check.

The local application suite hit one existing DeepSeek discovery failure because dsh is installed on this Mac. The same assertion fails on the base code.

This branch has not been deployed

No deployments
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.

1 participant