texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Common.pm (%default_parser_common_cu


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Common.pm (%default_parser_common_customization): set DOC_ENCODING_FOR_INPUT_FILE_NAME as a parser customization variable. Report from Gavin.
Date: Sun, 06 Mar 2022 09:42:24 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 5fca718c9f * tp/Texinfo/Common.pm 
(%default_parser_common_customization): set DOC_ENCODING_FOR_INPUT_FILE_NAME as 
a parser customization variable.  Report from Gavin.
5fca718c9f is described below

commit 5fca718c9fe71d15e9287df5dec9c05a9b8b6d0b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Mar 6 15:41:04 2022 +0100

    * tp/Texinfo/Common.pm (%default_parser_common_customization):
    set DOC_ENCODING_FOR_INPUT_FILE_NAME as a parser customization
    variable.  Report from Gavin.
---
 ChangeLog                 | 6 ++++++
 tp/TODO                   | 3 +++
 tp/Texinfo/Common.pm      | 2 ++
 tp/Texinfo/ParserNonXS.pm | 3 +--
 4 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 355525e4a5..6dae578d24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,12 @@
        file the file names were taken from.  Call File::Spec->catpath
        on already-encoded strings rather than encoding afterwards.
 
+2022-03-06  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Common.pm (%default_parser_common_customization):
+       set DOC_ENCODING_FOR_INPUT_FILE_NAME as a parser customization
+       variable.  Report from Gavin.
+
 2022-03-06  Patrice Dumas  <pertusus@free.fr>
 
        Document that some functions are getting or returning binary strings
diff --git a/tp/TODO b/tp/TODO
index 9666ba8c2d..5ab6cb770f 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -446,6 +446,9 @@ The archive epub file is not tested in the automated tests.
 epub for utf8 encoded manual in utf8 locale
 ./texi2any.pl --force -I tests/ --init init/epub3.pm 
tests/formatting/osé_utf8.texi
 
+The following tests require latin1 encoded file names
+./texi2any.pl tex_encod*_latin1.texi
+
 The following tests not important enough to have regression test
 ./texi2any.pl --force -I tests/ -o encodé/raw.txt -c 
TEXINFO_OUTPUT_FORMAT=rawtext tests/formatting/os*_utf8.texi
 ./texi2any.pl --force -I tests/ -c TEXINFO_OUTPUT_FORMAT=rawtext -c 
'SUBDIR=subdîr' tests/formatting/os*_utf8.texi
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index 53c20bb830..bc9d9e3bfa 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -112,6 +112,8 @@ my %default_parser_common_customization = (
                                             # file names encoding, else use
                                             # LOCALE_INPUT_FILE_NAME_ENCODING
   'DATA_INPUT_ENCODING_NAME' => undef, # encoding of command line strings
+  'LOCALE_INPUT_FILE_NAME_ENCODING' => undef, # used for input file encoding if
+                                              # 
DOC_ENCODING_FOR_INPUT_FILE_NAME is 0
 );
 
 # Customization variables obeyed only by the parser, and the default values.
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 1ba9fbe290..1417e37178 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -750,7 +750,7 @@ sub parser(;$$)
 
   _setup_conf($parser, $conf);
 
-  # Now initialize command hash that are dynamically modified, notably
+  # Initialize command hash that are dynamically modified, notably
   # those for index commands, and lists, based on defaults
   $parser->{'line_commands'} = dclone(\%line_commands);
   $parser->{'valid_nestings'} = dclone(\%default_valid_nestings);
@@ -760,7 +760,6 @@ sub parser(;$$)
   $parser->{'close_paragraph_commands'} = {%close_paragraph_commands};
   $parser->{'close_preformatted_commands'} = {%close_preformatted_commands};
 
-  
   # handle user provided state.
 
   # Currently not done, as none of the user provided configuration



reply via email to

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