[Gs-code-review] porting the regression test tool to Windows

Russell Lang gsview at ghostgum.com.au
Sat Feb 16 03:15:55 PST 2002


Igor,

> Comments :
> 
> 1. 'gsoptions' is added to 'gsconf'. gswin32 can't find lib files without
> it.
>    Don't want to use environment variables due to inconveniency.

A minor clarification.
If gswin32 is installed with the setup program, registry 
entries are written which allow Ghostscript to find the lib 
files.  This code is implemented as a special case of 
gp_getenv.  If GS_LIB is not defined as an environment 
variable, Ghostscript will look in the registry key
  HKLM\Software\AFPL Ghostscript\7.04
for a value GS_LIB and use this if present.

This is convenient for release versions, but inconvenient 
for test versions for which Igor is likely to be doing 
regression testing.
So ghostscript will be able to find lib files for release 
versions, but not for development versions.

Perhaps we should add code which adds to the libpath
the DLL path modified by ..\lib so GS can find the lib 
files for development code.  I am willing to write this if 
it is wanted.  Proposed code would overload this onto
gp_getenv as follows:
If environment variable exists, use it.
else if registry entry exists, use it.
else if name = GS_LIB, return dll path + ..\lib

This won't help find fonts.  It is assumed that the default 
libpath fill find these.

Russell Lang                   gsview at ghostgum.com.au
Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/





More information about the gs-code-review mailing list