[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Thu, 18 Apr 2024 15:16:40 -0400 (EDT) |
branch: master
commit b7d625b4e1270baac84c6bd1f7388b68867fd62a
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Apr 18 21:16:27 2024 +0200
* tp/Texinfo/XS/convert/ConvertXS.xs
(get_converter_indices_sorted_by_index): check if locale language is
set before caching the built Perl sorted index.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/convert/ConvertXS.xs | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0c7043242f..54126eafac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-18 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/ConvertXS.xs
+ (get_converter_indices_sorted_by_index): check if locale language is
+ set before caching the built Perl sorted index.
+
2024-04-18 Patrice Dumas <pertusus@free.fr>
* tp/init/html32.pm (html32_convert_center_command): in string
diff --git a/tp/Texinfo/XS/convert/ConvertXS.xs
b/tp/Texinfo/XS/convert/ConvertXS.xs
index b9949f1a33..caf738a87e 100644
--- a/tp/Texinfo/XS/convert/ConvertXS.xs
+++ b/tp/Texinfo/XS/convert/ConvertXS.xs
@@ -299,9 +299,9 @@ get_converter_indices_sorted_by_index (SV *converter_sv)
indices_information_hv);
RETVAL
= newRV_inc ((SV *) index_entries_by_index_hv);
- /* the hash for caching was found or created, cache the
- sorted indices */
- if (language_document_sorted_indices_hv)
+ /* the hash for caching was found or created and the sorting
+ language is set, cache the sorted indices */
+ if (language_document_sorted_indices_hv && language)
{
hv_store (language_document_sorted_indices_hv,
language, strlen(language),