[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#300109: tetex-bin: xdvi fails on compressed files



Only FYI.

From: Frank Küster <frank@debian.org>
Subject: Bug#300109: tetex-bin: xdvi fails on compressed files
Date: Thu, 17 Mar 2005 18:40:31 +0100

> ~$ xdvi examdoc.dvi.gz 
> xdvi.bin: Fatal error: Could not open `/dev/fd/3': Bad address.
> 
> I don't grok the perl script completely; but anyway: I has not changed
> between 2.0.2 and 3.0, and it works in 2.0.2.  So probably xdvi has
> changed.

Your guess would be right.  I remembered that xdvik-ja
(which is, usually, newer than xdvi in tetex-bin) encountered
the same problem in the past.

I'm unable to explain the technical reason of the problem in
English but a patch used looked as follows:

--- xdvik-22.84.3.orig/texk/xdvik/xdvi.c	2004-08-25 11:29:18.000000000 +0900
+++ xdvik-22.84.3/texk/xdvik/xdvi.c	2004-09-29 14:39:13.000000000 +0900
@@ -3911,7 +3911,10 @@
 	return NULL;
     
     ret = REALPATH(real_filename, canonical_path);
-    free(real_filename);
+    if (ret == NULL && errno == ENOENT)
+	ret = real_filename;
+    else
+	free(real_filename);
 
     /* check for correct DVI files */
     if ((f = XFOPEN(ret, OPEN_MODE)) != NULL) {

Regards,			2005-3-18(Fri)

-- 
 Debian Developer & Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <kohda@debian.org>
 Department of Math., Univ. of Tokushima



Reply to: