[gs-bugs] [Bug 691316] { /ISOLatin2Encoding findencoding } fails

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed May 19 16:14:50 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691316

--- Comment #13 from Christopher Yeleighton <giecrilj at stegny.2a.pl> 2010-05-19 16:14:49 UTC ---
(In reply to comment #10)
> As Ken suggested, on most linux systems, you can create 
> /usr/share/ghostscript/<version>/Resource/Encoding/ISOLatin2Encoding
> using
> /usr/share/ghostscript/<version>/Resource/Encoding/Wingdings
> as a template.

Oops 1: should be "${GS_LIB}/Encoding/ISOLatin2Encoding" for user 
Oops 2: The Windings file is not DSC-marked either.
Oops 3: Having anything in "${GS_LIB}/Encoding" causes a fatal error [2].  I
reopen for this reason, since your advice does not seem to work.

BTW, the documentation "Finding PostScript Level 2 resources" [1] is incorrect
in that Ghostscript does not apply the '../Resource' infix to the local path
and user path.

Instead of:

If the value of the system parameter GenericResourceDir is not an absolute
path, Ghostscript assumes multiple resource directories. In this case it
concatenates : 

  1.
A directory listed in the section How Ghostscript finds files, except the
current directory; 

  2.
The value of the system parameter GenericResourceDir; 

  3.
The name of the resource category (for instance, CMap); 

  4.
The name of the resource instance (for instance, Identity-H)


Should be:

If the value of the system parameter GenericResourceDir is not an absolute
path, Ghostscript assumes multiple resource directories. In this case it
concatenates : 

  1.
A directory listed in the section How Ghostscript finds files, [-except the
current directory-]; 

  2. 
The value of the system parameter GenericResourceDir, [+except for the current
directory and for "${GS_LIB}"+]; 

  3.
The name of the resource category (for instance, CMap); 

  4.
The name of the resource instance (for instance, Identity-H)If the user doesn't
set the system parameter GenericResourceDir, Ghostscript creates a default
value for it with attaching the string ../Resource to directory paths explained
in How Ghostscript finds files, except the current directory. The first
successful combination is used.


[1]
<URL:file:///usr/share/doc/packages/ghostscript-library/doc/Use.htm#PS_resources>

[2]

krzysztof at ne-1:~/Dokumenty> touch "${GS_LIB}/Encoding/ISOLatin2Encoding"
krzysztof at ne-1:~/Dokumenty> gs                                          
GPL Ghostscript 8.64 (2009-02-03)                                       
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.         
This software comes with NO WARRANTY: see the file COPYING for details. 
While reading gs_fntem.ps:
Error: /undefinedresource in findresource
Operand stack:
   (gs_fntem.ps)   1   FontEmulationProcs   encodingnames   --nostringval--  
--nostringval--   StandardEncoding   --nostringval--   ISOLatin1Encoding  
--nostringval--   SymbolEncoding   --nostringval--   DingbatsEncoding  
--nostringval--   DingbatsEncoding   --nostringval--   StandardEncoding  
--nostringval--   ISOLatin1Encoding   --nostringval--   SymbolEncoding  
--nostringval--   Wingdings   ISOLatin2Encoding   ISOLatin2Encoding   Encoding 
 27   ISOLatin2Encoding
Execution stack:
   %interp_exit   --nostringval--   --nostringval--   --nostringval--  
%array_continue   --nostringval--   --nostringval--   --nostringval--   false  
1   %stopped_push   --nostringval--   1831   17   5   %oparray_pop  
--nostringval--   --nostringval--   --dict:17/21(ro)(G)--   --dict:2/2(G)--  
--nostringval--   1   %dict_continue   --nostringval--   --nostringval--   1829
  26   5   %oparray_pop   findresource   %errorexec_pop   --nostringval--  
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:963/3371(G)--   --dict:0/20(G)--   --dict:63/200(L)--  
--dict:963/3371(G)--   --dict:10/10(G)--   --dict:17/21(ro)(G)--
Current allocation mode is global
Current file position is 7076
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    gs_fntem.ps  1  FontEmulationProcs  encodingnames  --nostringval-- 
--nostringval--  StandardEncoding  --nostringval--  ISOLatin1Encoding 
--nostringval--  SymbolEncoding  --nostringval--  DingbatsEncoding 
--nostringval--  DingbatsEncoding  --nostringval--  StandardEncoding 
--nostringval--  ISOLatin1Encoding  --nostringval--  SymbolEncoding 
--nostringval--  Wingdings  ISOLatin2Encoding  ISOLatin2Encoding  Encoding

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list