[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/t/test_utils.pl (convert_to_info): If not ou
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/t/test_utils.pl (convert_to_info): If not outputting to a file, set OUTPUT_PERL_ENCODING to an empty string to disable any character encoding. |
Date: |
Sat, 30 Dec 2023 11:43:40 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new a4551cdde2 * tp/t/test_utils.pl (convert_to_info): If not outputting
to a file, set OUTPUT_PERL_ENCODING to an empty string to disable any character
encoding.
a4551cdde2 is described below
commit a4551cdde207fd5f778fc7412d8ec294f26fbbee
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Dec 30 16:39:09 2023 +0000
* tp/t/test_utils.pl (convert_to_info): If not outputting to
a file, set OUTPUT_PERL_ENCODING to an empty string to disable
any character encoding.
This is in order to minimise changes to the test results when
Texinfo::Convert::Plaintext::convert starts returning an encoded
string in the future. This changes some byte offsets in the
test results to meaningless values. If these offsets needed to be
tested, a separate Info output file would have to be used instead.
---
ChangeLog | 12 +++++
tp/t/results/converters_tests/commands_in_sc.pl | 4 +-
.../some_at_commands_in_ref_nodes.pl | 2 +-
.../formats_encodings/at_commands_in_refs.pl | 54 +++++++++++-----------
tp/t/results/info_tests/test_index.pl | 2 +-
tp/t/results/languages/command_translated.pl | 2 +-
.../results/languages/multiple_documentlanguage.pl | 4 +-
tp/t/results/languages/multiple_in_preamble.pl | 4 +-
.../languages/multiple_in_preamble_before_node.pl | 4 +-
.../moresectioning/only_special_spaces_node.pl | 8 ++--
.../moresectioning/special_spaces_in_nodes.pl | 18 ++++----
.../sectioning/in_menu_only_special_spaces_node.pl | 8 ++--
.../in_menu_only_special_spaces_node_menu.pl | 8 ++--
.../reference_to_only_special_spaces_node.pl | 2 +-
tp/t/test_utils.pl | 10 ++++
15 files changed, 82 insertions(+), 60 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 33bb91a55d..5b560cc9b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2023-12-27 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/t/test_utils.pl (convert_to_info): If not outputting to
+ a file, set OUTPUT_PERL_ENCODING to an empty string to disable
+ any character encoding.
+
+ This is in order to minimise changes to the test results when
+ Texinfo::Convert::Plaintext::convert starts returning an encoded
+ string in the future. This changes some byte offsets in the
+ test results to meaningless values. If these offsets needed to be
+ tested, a separate Info output file would have to be used instead.
+
2023-12-30 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/convert_html.c
diff --git a/tp/t/results/converters_tests/commands_in_sc.pl
b/tp/t/results/converters_tests/commands_in_sc.pl
index 7d62ce6a47..53e845b952 100644
--- a/tp/t/results/converters_tests/commands_in_sc.pl
+++ b/tp/t/results/converters_tests/commands_in_sc.pl
@@ -963,8 +963,8 @@ MA+TH (1) <la> B (a) LB c E <a@c> AB (D)
Tag Table:
Node: Top27
Node: chap124
-Ref: inanchor264
-Ref: chap-Footnote-1346
+Ref: inanchor262
+Ref: chap-Footnote-1343
End Tag Table
diff --git a/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
b/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
index adb620efc9..0f92be61b2 100644
--- a/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
+++ b/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
@@ -1589,7 +1589,7 @@ see *note (manual)a *strong* ref with SC, a i trema ï, a
dotless i trema
Tag Table:
Node: Top27
-Node: A SC Ñ Å TeX node ï ï Ḕ ł Ḉ ¡172
+Node: A SC Ñ Å TeX node ï ï Ḕ ł Ḉ ¡152
End Tag Table
diff --git a/tp/t/results/formats_encodings/at_commands_in_refs.pl
b/tp/t/results/formats_encodings/at_commands_in_refs.pl
index 13b69d19ab..64ac2c45e7 100644
--- a/tp/t/results/formats_encodings/at_commands_in_refs.pl
+++ b/tp/t/results/formats_encodings/at_commands_in_refs.pl
@@ -16972,33 +16972,33 @@ File: , Node: <http://somewhere_aaa> text (url) ls,
Prev: _{g}H 3^{rd}, Up: T
Tag Table:
Node: Top27
-Node: { }875
-Node: ! . . ? @954
-Node: @ { } \\ #1058
-Node: LaTeX TeX • , © ... ...1180
-Node: ≡ error→ € ¡ ↦ −1347
-Node: ≥ ≤ →1510
-Node: ª º ⋆ £ ⊣ ¿ ®1640
-Node: ⇒ ° a b a sunny day å1787
-Node: Å æ œ Æ Œ ø Ø ß ł Ł Ð ð Þ þ1975
-Node: ä ẽ î â à é ç ē e̊ e̋ ę2198
-Node: ė ĕ e̲ ẹ ě ȷ e͡e2410
-Node: ı Ḕ Ḉ2573
-Node: “ ” ‘ ’ „ ‚2701
-Node: « » « » ‹ ›2843
-Node: `` \'\' --- -- ` \'2987
-Node: AAA (fff) AAA BBB3119
-Node: CCC (rrr) CCC DDD3259
-Node: the someone <someone@somewher> <no_explain@there>3432
-Node: [f--ile1] [image src="f--ile.png" alt="alt" text="Image
description\\"\\"\\\\."