File: Remove-double-quoting-of-the-output-file-parameter-for-gh.patch

package info (click to toggle)
openscad 2021.01-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 35,972 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (26 lines) | stat: -rw-r--r-- 997 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Kristian Nielsen <knielsen@knielsen-hq.org>
Date: Fri, 15 Apr 2022 10:09:48 +0200
Subject: Remove double quoting of the output file parameter for ghostscript

Apply upstream patch for this to fix #1009682.

Origin: https://github.com/openscad/openscad/pull/4219
Bug: https://github.com/openscad/openscad/issues/4218
Forwarded: not-needed
---
 tests/export_pngtest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/export_pngtest.py b/tests/export_pngtest.py
index d9096fa..2b9998e 100644
--- a/tests/export_pngtest.py
+++ b/tests/export_pngtest.py
@@ -82,7 +82,7 @@ result = subprocess.call(export_cmd, env = fontenv)
 if result != 0:
     failquit('OpenSCAD failed with return code ' + str(result))
 
-convert_cmd = gs_cmd + ["-sOutputFile=\"" + pngfile + "\"", exportfile]
+convert_cmd = gs_cmd + ["-sOutputFile=" + pngfile, exportfile]
 print('Running Converter:', ' '.join(convert_cmd), file=sys.stderr)
 result = subprocess.call(convert_cmd)
 if result != 0: