summaryrefslogblamecommitdiff
path: root/user/gnu-ghostscript/locksafe.patch
blob: cc4bad2b543d884e77306452ed5dbbcb85810eae (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                           










                                                                                                   
Bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840691
Symptom: 'invalidaccess -7' opening PostScript files in Evince, Okular, etc

--- gnu-ghostscript-9.14.1/Resource/Init/gs_init.ps.old	2016-11-06 17:40:19.000000000 +0000
+++ gnu-ghostscript-9.14.1/Resource/Init/gs_init.ps	2019-06-26 02:22:56.825331976 +0000
@@ -2018,7 +2018,7 @@
 
 /.locksafe {
   .locksafe_userparams
-  systemdict /getenv {pop //false} put
+  systemdict /getenv {pop //false} .forceput
   % setpagedevice has the side effect of clearing the page, but
   % we will just document that. Using setpagedevice keeps the device
   % properties and pagedevice .LockSafetyParams in agreement even
--- gnu-ghostscript-9.14.1/Resource/Init/gs_init.ps.in.old	2016-11-06 16:53:19.000000000 +0000
+++ gnu-ghostscript-9.14.1/Resource/Init/gs_init.ps.in	2019-06-26 03:07:59.256491684 +0000
@@ -2018,7 +2018,7 @@
 
 /.locksafe {
   .locksafe_userparams
-  systemdict /getenv {pop //false} put
+  systemdict /getenv {pop //false} .forceput
   % setpagedevice has the side effect of clearing the page, but
   % we will just document that. Using setpagedevice keeps the device
   % properties and pagedevice .LockSafetyParams in agreement even