texlive[55872] Master/texmf-dist/scripts/psviewer/psviewer.vbs:

commits+siepo at tug.org commits+siepo at tug.org
Sun Jul 19 15:10:13 CEST 2020


Revision: 55872
          http://tug.org/svn/texlive?view=revision&revision=55872
Author:   siepo
Date:     2020-07-19 15:10:13 +0200 (Sun, 19 Jul 2020)
Log Message:
-----------
psviewer: spaces in filenames

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/psviewer/psviewer.vbs

Modified: trunk/Master/texmf-dist/scripts/psviewer/psviewer.vbs
===================================================================
--- trunk/Master/texmf-dist/scripts/psviewer/psviewer.vbs	2020-07-18 23:54:02 UTC (rev 55871)
+++ trunk/Master/texmf-dist/scripts/psviewer/psviewer.vbs	2020-07-19 13:10:13 UTC (rev 55872)
@@ -48,17 +48,17 @@
 ' create temporary pdf
 If LCase( Right( fname, 4 )) = ".eps" Then
   If oWsh.run( "kpsewhich -format texmfscripts epstopdf.pl", 0, true ) = 0 Then
-    oWsh.run "epstopdf " & oArgs( 0 ) & " " & tf, 0, true
+    oWsh.run "epstopdf """ & f & """ """ & tf & """", 0, true
   Else
-    oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite -dEPSCrop -sOutputFile#" & tf & " -f " & f, 0, true
+    oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite -dEPSCrop ""-sOutputFile#" & tf & """ -f """ & f & """", 0, true
   End if
 Else
-  oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite -sOutputFile#" & tf & " -f " & f, 0, true
+  oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite ""-sOutputFile#" & tf & """ -f """ & f & """", 0, true
 End If
 
 ' open temporary pdf
 If oFS.fileexists(tf) Then
-  oWsh.run( tf )
+  oWsh.run( """" & tf & """" )
 Else
   MsgBox f & " could not be converted," & vbcrlf & _
   "is probably not valid PostScript", 0, "Error"



More information about the tex-live-commits mailing list.