On Thu, Sep 05, 2024 at 09:49:02PM +0100, Jeremy Bryant wrote:
> Hello,
> 
> Version: texi2any (GNU texinfo) 7.1
> 
> This appears to depend on latex2html which appears not to be maintained.
> Is there a fix?

You could try this patch and apply to $datadir/texinfo/ext/latex2html.pm

-- 
Pat
diff --git a/tp/ext/latex2html.pm b/tp/ext/latex2html.pm
index 4d539cf6f4..44408211d6 100644
--- a/tp/ext/latex2html.pm
+++ b/tp/ext/latex2html.pm
@@ -436,7 +436,8 @@ sub l2h_to_html($$$)
   # set output dir
   my $encoded_destination_dir_option = ' -no_subdir';
   my $destination_dir_option = $encoded_destination_dir_option;
-  if ($destination_directory ne '') {
+  my $curdir = File::Spec->curdir();
+  if ($destination_directory ne '' and $destination_directory ne $curdir) {
     $encoded_destination_dir_option = " -dir ".$destination_directory_string;
     $destination_dir_option = " -dir ".$destination_directory;
   }

Reply via email to