[l2h] Re: Bug#234879: latex2html: Latex2Html can not handle files/directories with space in names (I give a fix)

Roland Stigge stigge at antcom.de
Thu Feb 26 14:50:12 CET 2004


Hi,

a Debian user sent in the following bug report with a patch:

On Thu, 2004-02-26 at 12:24, Mazen NEIFER wrote:
> Package: latex2html
> Version: 2002-2-1-4
> Severity: normal
> Tags: patch
> 
> 
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.4.24-1-686
> Locale: LANG=C, LC_CTYPE=C
> 
> Versions of packages latex2html depends on:
> ii  gs                            7.07-1     The Ghostscript Postscript interpr
> ii  netpbm                        2:10.0-3   Graphics conversion tools
> ii  perl                          5.8.3-2    Larry Wall's Practical Extraction 
> 
> -- no debconf information
> 
> just need to add some \" for file names
> 
> here is my proposed patch 
> 
> neifer at EN-ETUDE01:~/MesDocuments/RE/Last version$ diff -c
> /usr/bin/latex2html latex2html
> *** /usr/bin/latex2html Mon Jan 12 11:55:09 2004
> --- latex2html  Thu Feb 26 12:00:00 2004
> ***************
> *** 803,813 ****
>   #     die "File $TEXEXPAND does not exist or is not executable\n"
>   #         unless (-x $TEXEXPAND);
>         L2hos->syswait("$TEXEXPAND $dbg -auto_exclude $unseg"
> !                . "-save_styles $DESTDIR$dd$TMP_${dd}styles "
> !                . ($TEXINPUTS ? "-texinputs $TEXINPUTS " : '' )
>                  . (($VERBOSITY >2) ? "-verbose " : '' )
> !                . "-out $DESTDIR$dd$TMP_$dd$FILE "
> !                . "$texfilepath$dd$FILE.$EXT")
>             && die " texexpand  failed: $!\n";
>         print STDOUT "\n ***  `texexpand' done ***\n" if ($VERBOSITY >
> 1);
> 
> --- 803,813 ----
>   #     die "File $TEXEXPAND does not exist or is not executable\n"
>   #         unless (-x $TEXEXPAND);
>         L2hos->syswait("$TEXEXPAND $dbg -auto_exclude $unseg"
> !                . "-save_styles \"$DESTDIR$dd$TMP_${dd}styles\" "
> !                . ($TEXINPUTS ? "-texinputs \"$TEXINPUTS\" " : '' )
>                  . (($VERBOSITY >2) ? "-verbose " : '' )
> !                . "-out \"$DESTDIR$dd$TMP_$dd$FILE\" "
> !                . "\"$texfilepath$dd$FILE.$EXT\"")
>             && die " texexpand  failed: $!\n";
>         print STDOUT "\n ***  `texexpand' done ***\n" if ($VERBOSITY >
> 1);
> 
> neifer at EN-ETUDE01:~/MesDocuments/RE/Last version$

It works for us.

What do you think about it?

Thanks!

bye,
  Roland

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://tug.org/pipermail/latex2html/attachments/20040226/9800a1ae/attachment.bin


More information about the latex2html mailing list