summaryrefslogtreecommitdiff
path: root/gs/lib
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2008-11-27 01:58:54 +0000
committerAlex Cherepanov <alex.cherepanov@artifex.com>2008-11-27 01:58:54 +0000
commit3a9a4bd8df59112b15b9ce5324979e95bc54b87f (patch)
treeb08e367cfa5f270a613227e188f2517fdecaee10 /gs/lib
parent88a8274d52d873132f60834936e10c077bf727c3 (diff)
Restore language level after loading pdfwrite.ps for consistency and
compatibility with PS utilities. Also pick a few nits that may cause errors if some of start-up files ever loaded in level 1 mode. Thanks to SaGS for the patch. Bug 688151. DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9246 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/lib')
-rw-r--r--gs/lib/pdfwrite.ps4
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/lib/pdfwrite.ps b/gs/lib/pdfwrite.ps
index 0434a9139..99e36005a 100644
--- a/gs/lib/pdfwrite.ps
+++ b/gs/lib/pdfwrite.ps
@@ -26,7 +26,7 @@
% XRef (dict): output_obj# => output_file_pos
% ToWrite: 0..N-1 => [obj# gen#]
-/.setlanguagelevel where { pop 2 .setlanguagelevel } if
+.languagelevel 2 .setlanguagelevel
.currentglobal true .setglobal
/PDFWRDEBUG where { pop } { /PDFWRDEBUG false def } ifelse
@@ -394,4 +394,4 @@ readonly def
end
} bind def
-.setglobal
+.setglobal .setlanguagelevel