Re: xdvi: Unable to load encoding vector 8r.enc

2002-06-04 Thread Thomas Anders

Stefan Ulrich wrote:
 Addendum: After some more digging, the culprit has been found to
 be t1lib 1.0.1, which doesn't even make an attempt at
 understanding dvips-style .enc files.

Indeed: when using the supplied t1lib (i.e. no --with-system-t1lib)
or our custom t1lib 1.3.1 installation, xdvi works fine.
(This is now with tetex-src-beta-20020530.)

I suggest adding an appropriate t1lib check (for version
or functionality) to configure.

Thanks for your help.


Kind regards,
Thomas

-- 
Thomas Anders [EMAIL PROTECTED]
Hahn-Meitner-Institut Berlin, Germany




Re: xdvi: Unable to load encoding vector 8r.enc

2002-06-03 Thread Stefan Ulrich

Thomas Anders [EMAIL PROTECTED] writes:

 with beta-20020402 (plus the dvips patch) I get the following
 xdvi error on any document:

 xdvi: Unable to load encoding vector 8r.enc from 
 /net/pub/teTeX-beta-20020402/share/texmf/dvips/base/8r.enc
 xdvi: No such file or directory

This error message sucks *big time*. It's the result of
erroneously calling

   perror(xdvi)

thus accessing the last value of errno, which unfortunately has
nothing to do with the internal T1_errno from t1lib that xdvi
ought to report here. (Strangely, there seems to be no utility
function in T1lib for mapping T1_errno to a human-readable
message? Will need to investigate this.)

Could you maybe send me your file
/net/pub/teTeX-beta-20020402/share/texmf/dvips/base/8r.enc
? It's a bit difficult to know exactly where in the teTeX
diffs that version is located, and I'd rather not have to
download all of them ;)

Best,
Stefan



Re: xdvi: Unable to load encoding vector 8r.enc

2002-06-03 Thread Thomas Anders

Stefan Ulrich wrote:
 Thomas Anders [EMAIL PROTECTED] writes:
xdvi: Unable to load encoding vector 8r.enc from 
/net/pub/teTeX-beta-20020402/share/texmf/dvips/base/8r.enc
xdvi: No such file or directory
 
 This error message sucks *big time*. It's the result of
 erroneously calling
 
perror(xdvi)
 
 thus accessing the last value of errno, which unfortunately has
 nothing to do with the internal T1_errno from t1lib that xdvi
 ought to report here. 

After some off-list discussion with Stefan Ulrich (thanks for the
help) I can temporarily summarize as follows:

Patching dvi-draw.c and recompiling xdvik reveals T1_errno=15
(T1ERR_UNSPECIFIED). This happens with our installation of
t1lib 1.0.1 (--with-system-t1lib) on all of our Solaris,
Tru64 Unix and SuSE Linux machines.

xdvi -not1lib (or xdvi.t1lib: False in app-defaults/XDvi)
works around the problem.

The problem is still present with beta-20020530 (to which I
just upgraded).


Kind regards,
Thomas

-- 
Thomas Anders [EMAIL PROTECTED]
Hahn-Meitner-Institut Berlin, Germany




Re: xdvi: Unable to load encoding vector 8r.enc

2002-06-03 Thread Stefan Ulrich

Thomas Anders [EMAIL PROTECTED] writes:

 After some off-list discussion with Stefan Ulrich (thanks for the
 help) I can temporarily summarize as follows:

 Patching dvi-draw.c and recompiling xdvik reveals T1_errno=15
 (T1ERR_UNSPECIFIED). This happens with our installation of
 t1lib 1.0.1 (--with-system-t1lib) on all of our Solaris,
 Tru64 Unix and SuSE Linux machines.

Addendum: After some more digging, the culprit has been found to
be t1lib 1.0.1, which doesn't even make an attempt at
understanding dvips-style .enc files. From t1lib/CHANGES:

   July 2001: t1lib-1.2:
   --
   [...]
   - Additional support for dvips encoding files (thanks to
 suggestion and contribution by Nicolai Langfeldt
 ([EMAIL PROTECTED]).

I've now added a hint about this to the error message - hope
this will help to prevent such problems in the future ;-)

Best,
Stefan



Re: xdvi: Unable to load encoding vector 8r.enc

2002-06-03 Thread Thomas Esser

 Addendum: After some more digging, the culprit has been found to
 be t1lib 1.0.1, which doesn't even make an attempt at
 understanding dvips-style .enc files. From t1lib/CHANGES:

Thanks for finding this.

Thomas