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

Bug#221793: tetex-bin: xdvi fails on compressed files in read-only directory



On Thu, Nov 20, 2003 at 08:43:49AM +0100, Hilmar Preusse wrote:
> On 20.11.03 Chung-chieh Shan (ken@digitas.harvard.edu) wrote:
> 
> Hello,
> 
> > The recent update to xdvi makes it impossible to use xdvi to view a
> > compressed dvi file in a read-only directory, such as LaTeX package
> > documentation.
> > 
> Well -- don't assume that I'm able to speak perl, but the following
> works for me[TM]. Apply it to the xdvi perl script.

> --- xdvi-pl	Wed Oct 29 01:41:02 2003
> +++ xdvi-pl.new	Thu Nov 20 08:36:09 2003
> @@ -66,6 +66,7 @@
>  
>  	require Fcntl;
>  	my $fh = tempfile( "tetexXXXXXX",
> +			   DIR => "/tmp",
>  			   SUFFIX => ".dvi",
>  			   UNLINK => 1 )

That overrides the user's setting of TMPDIR, which is probably not
desired.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

        Julian Gilbey, website: http://www.polya.uklinux.net/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: