texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Fri, 3 May 2024 06:30:54 -0400 (EDT)

branch: master
commit 19e6104df9467ed3bb8606329b98090a553191d5
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri May 3 11:08:13 2024 +0200

    * tp/Texinfo/Indices.pm (setup_index_entry_keys_formatting): handle
    undefined OUTPUT_ENCODING_NAME.
---
 ChangeLog             | 5 +++++
 tp/Texinfo/Indices.pm | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2318cc0280..5abdf81b7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-03  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Indices.pm (setup_index_entry_keys_formatting): handle
+       undefined OUTPUT_ENCODING_NAME.
+
 2024-05-02  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c
diff --git a/tp/Texinfo/Indices.pm b/tp/Texinfo/Indices.pm
index ba9dd0ccfa..be9a82da01 100644
--- a/tp/Texinfo/Indices.pm
+++ b/tp/Texinfo/Indices.pm
@@ -150,8 +150,9 @@ sub setup_index_entry_keys_formatting($)
   my $additional_options = {};
 
   if (not $customization_information->get_conf('ENABLE_ENCODING')
-      or lc($customization_information->get_conf('OUTPUT_ENCODING_NAME'))
-           ne 'utf-8') {
+      or ($customization_information->get_conf('OUTPUT_ENCODING_NAME')
+          and lc($customization_information->get_conf('OUTPUT_ENCODING_NAME'))
+                  ne 'utf-8')) {
     $additional_options->{'sort_string'} = 1;
   }
 



reply via email to

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