Discussion:
[tex-k] Issues in epstopdf in MSYS/MinGW system
KUROKI Yusuke
2015-01-20 03:40:16 UTC
Permalink
Hello, the list,

I would like to report inconvenience of epstopdf(.pl)
in the MSYS (or MinGW) system, which is a mainly
developers' environment providing bash,
Unix-like text utilities, and more in Windows OS,
and make a proposal to improve it.

(1)
While using MSYS, system name is changed to "MSYS",
not "MSWin...". Since $GS should be gswin32 to use TeX
Live's tlgs distribution, $on_windows variable should be
also true when the system name is "MSYS".

(2)
MSYS changes some character strings including /
as shown at http://www.mingw.org/wiki/Posix_path_conversion .
The options to Ghostscript has /, then epstopdf fails.
Ghostscript's help says "(you can use # in place of =)"
and documentation says also "Ghostscript treats '#' the
same internally, and the '=' is mangled by the command
shell. " (e.g., at http://www.ghostscript.com/doc/current/Use.htm#MS_Windows)
epstopdf(.ps) has two cases giving option separated by "="
to Ghostscript; I think "=" should be "#" in both cases.

The attached file is a proposal patch to trunk of TeX Live repository.

Best,
-- KUROKI Yusuke
Karl Berry
2015-01-22 21:31:35 UTC
Permalink
Hi Yusuke,

The options to Ghostscript has /, then epstopdf fails.

Ok, but why aren't the other instances of gs options using = a problem?
push @GS, "-sOutputFile=$OutputFilename";
could include /'s.

Just wondering. If the two you mentioned are the only problem, then
fine, I'll leave it at that.

Thanks,
Karl
KUROKI Yusuke
2015-01-23 09:20:53 UTC
Permalink
Hi, Karl,
If the two you mentioned are the only problem, then fine
Yes only the two are only problem in epstopdf.
Path strings should be interpreted by MSYS,
for example, $OutputFilename is /tmp/foo.pdf,
it should change to C:/MinGW/msys/1.0/tmp/foo.pdf,
but PS command /preprint should *not* changed to C:/MinGW/msys/1.0/preprint .

Thanks,
-- Yusuke.
Hi Yusuke,
The options to Ghostscript has /, then epstopdf fails.
Ok, but why aren't the other instances of gs options using = a problem?
could include /'s.
Just wondering. If the two you mentioned are the only problem, then
fine, I'll leave it at that.
Thanks,
Karl
Loading...