[tex-k] epstopdf not usable in Git Bash for Windows
Yukai Chou
muzimuzhi at gmail.com
Thu Mar 28 14:38:21 CET 2024
Hi all,
When invoked in Git Bash for Windows, epstopdf failed with
epstopdf ($Id: epstopdf.pl 68289 2023-09-15 22:17:54Z karl $) 2.33
!!! Error: Required program kpsewhich not found in PATH (<full content of
PATH>)
It seems the cause is, in Git Bash the path separator in PATH is unix-like
colon (:), not win-like semicolon (;), but epstopdf still tries to split
PATH using semicolon in `sub check_prog_exists`. Related source lines in
epstopdf
# not absolute, check path
for my $dir (split ($on_windows ? ";" : ":", $ENV{"PATH"})) {
$dir = "." if $dir eq ""; # empty path element
debug " Checking dir $dir";
if (-x "$dir/$prog") {
return 1;
} elsif ($on_windows_or_cygwin) {
for my $ext (@w_ext) {
return 1 if (-x "$dir/$prog.$ext");
}
}
}
Steps to reproduce the problem:
# get an eps provided by mwe package
cp $(kpsewhich example-image.eps) .
epstopdf --debug example-image.eps
This is first reported and discussed in
https://github.com/teatimeguest/setup-texlive-action/issues/292.
best regards,
Yukai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-k/attachments/20240328/b0a11965/attachment.htm>
More information about the tex-k
mailing list.