System: Windows 10, MikTeX 2.9, WinEdt 10.2
Workflow: tex -> ps -> pdf
Problem: I created a file named "TeoriaTehtäviä.tex" containing two characters outside the 7 bit ASCII range. Here's what happened:
- LaTeX (run within WinEdt) runs without any problems.
- The built-in program "dvips" (IIRC comes with MikTeX) has no problems whatsoever creating a corresponding file "TeoriaTehtäviä.ps". I can view that just fine with GSView.
- But, the attempt to convert this to pdf by clicking the "ps2pdf" button (IIRC another program that came with MikTeX) gives the error message: Error: /undefinedfilename in (TeoriaTehtvi.ps). This is in a sense not a surprise because no file with such name exists.
The problem is obviously with the characters that fall outside the range of 7-bit ASCII. We have related posts such as this. And I can solve my problem just fine by using another file name. But, I still have the questions:
- Is there a fix to this problem?
- Why is this not a problem for "dvips", but "ps2pdf" acts up? In other words, why different component programs of MikTeX behave differently?
I'm afraid I also somewhat miffed that even in 2019 it is still possible to run into problems like this :-(.
Update:
- A per suggestion from AlexG, I tested it within Windows PowerShell. I got the exact same error message.
- I also tried calling
mgs.exe TeoriaTehtäviä.ps TeoriaTehtäviä.pdf(mgsis a version of Ghostscript that came with MikTeX) within Windows PowerShell. In the command prompt the error message changed slightly to read Error: /undefinedfilename in (TeoriaTeht\303\244vi\303\244.pdf). In other words, instead of dropping the characters they were substituted by their extended codes.
ps2pdfin a terminal. – AlexG Sep 12 '19 at 11:02dvipsandps2pdfbehave differently. Scratches head :-) – Jyrki Lahtonen Sep 12 '19 at 11:06cmd.exeor PowerShell)? Maybe it is only an editor (WinEdit) problem. – AlexG Sep 12 '19 at 11:11mgs.exein my MikTeX-directory is apparently version 9.25 (dated Sept 25, 2018). I had installed a newer version ofgswin64(version 9.27, dated April 4, 2019). Renaming that tomgs.exelike back in the day (thanks for remembering!) did not help me. At least I should be able to useanimatewithout problems :-) – Jyrki Lahtonen Sep 12 '19 at 13:31