texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Sat, 13 Apr 2024 13:56:25 -0400 (EDT)

branch: master
commit 0a40c274ecd4e814a8fa5ee29bd311c8a1c71e80
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Apr 13 18:19:03 2024 +0200

    * tp/Texinfo/Common.pm (output_files_opened_files), tp/texi2any.pl
    (merge_opened_files): add NOTE in comment to note that paths are not
    normalized, such that paths with different path names referring to the
    same file will not be caugth as overwritting files and will not
    trigger warning messages.
---
 ChangeLog            | 8 ++++++++
 tp/Texinfo/Common.pm | 2 ++
 tp/texi2any.pl       | 2 ++
 3 files changed, 12 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4f096075d9..7a56ef9e29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-04-13  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Common.pm (output_files_opened_files), tp/texi2any.pl
+       (merge_opened_files): add NOTE in comment to note that paths are not
+       normalized, such that paths with different path names referring to the
+       same file will not be caugth as overwritting files and will not
+       trigger warning messages.
+
 2024-04-13  Patrice Dumas  <pertusus@free.fr>
 
        * tp/tests/run_parser_all.sh: do not add a / at the end of $testdir,
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index da727948e7..574c69194a 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -696,6 +696,8 @@ sub output_files_open_out($$$;$$)
   # scripts licence file set by the user to the same name as an output
   # file.
   my $overwritten_file = 0;
+  # NOTE paths are not normalized, therefore different paths names
+  # that refers to the same file will not be found.
   if (exists($self->{'opened_files'}->{$file_path})) {
     $overwritten_file = 1;
   }
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index 88551f5f67..b4b326e178 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -1282,6 +1282,8 @@ sub merge_opened_files($$$)
 
   if ($newly_opened_files) {
     foreach my $opened_file (sort(keys(%$newly_opened_files))) {
+      # NOTE paths are not normalized, therefore different paths names
+      # that refers to the same file will not trigger the message.
       if (exists($opened_files->{$opened_file})) {
         document_warn(sprintf(__('overwritting file: %s'),
                       $opened_file));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]