miyako / 4d-plugin-gs

4D implementation of Ghostscript
MIT License
1 stars 0 forks source link

Error on windows with special characters in file paths #4

Open michelottiABV opened 1 year ago

michelottiABV commented 1 year ago

hello,

I have a problem with the GS command on windows when the file path contains special characters: "é", "ê", "ù", ...

error -12

How to encode these characters to pass them as arguments to the -sOutputFile option?

miyako commented 1 year ago

if the problem is specific to window then it might be a ghostscript bug (using ANSI instead of UTF-8)

miyako commented 1 year ago

https://github.com/miyako/4d-plugin-gs/blob/master/gs/4DPlugin-GS.cpp

miyako commented 1 year ago

https://social.msdn.microsoft.com/Forums/vstudio/en-US/6ecb4620-b738-48f0-8dfb-25c9b0a6078e/ps-to-pdf-conversion?forum=winforms

michelottiABV commented 1 year ago

The problem appeared with version 2.0, it worked correctly with version 1.4

miyako commented 1 year ago

technically it should be possible to replace gsdll64.dll from the old version. it was updated (the new one is larger) but maybe there was a regression

miyako commented 1 year ago

I do not compile GS for Windows, I simply use the public releases https://github.com/ArtifexSoftware/ghostpdl-downloads/releases

michelottiABV commented 1 year ago

I tried to take the gsdll64.dll file from version 1.4 to replace the one from version 2.3 but the problem is still present. For the moment we will work again with version 1.4 which works very well.