[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: C locale for some tests
From: |
Gavin D. Smith |
Subject: |
branch master updated: C locale for some tests |
Date: |
Tue, 31 May 2022 16:10:35 -0400 |
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 ef7c174f2e C locale for some tests
ef7c174f2e is described below
commit ef7c174f2e9f96922b61f28edaa3b1496758fccb
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue May 31 21:10:26 2022 +0100
C locale for some tests
* tp/tests/run_parser_all.sh: Set LC_ALL to C and LANG to en,
both previously en_US.UTF-8 (last changed on 2022-02-14).
* tp/tests/formatting/list-of-tests: Set extra variables on
tests to use UTF-8 encoding where required.
---
ChangeLog | 9 +++++++++
tp/tests/formatting/list-of-tests | 12 ++++++------
tp/tests/run_parser_all.sh | 4 ++--
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3c610246d8..aed7e44654 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-05-31 Gavin Smith <gavinsmith0123@gmail.com>
+
+ C locale for some tests
+
+ * tp/tests/run_parser_all.sh: Set LC_ALL to C and LANG to en,
+ both previously en_US.UTF-8 (last changed on 2022-02-14).
+ * tp/tests/formatting/list-of-tests: Set extra variables on
+ tests to use UTF-8 encoding where required.
+
2022-05-31 Gavin Smith <gavinsmith0123@gmail.com>
Consistent test results
diff --git a/tp/tests/formatting/list-of-tests
b/tp/tests/formatting/list-of-tests
index 8965ca597c..0938dd90b8 100644
--- a/tp/tests/formatting/list-of-tests
+++ b/tp/tests/formatting/list-of-tests
@@ -12,23 +12,23 @@ documentlanguage_cmdline documentlanguage.texi
--document-language=fr
# already tested in t/*.t, but here want to have a result with
# accented characters in error messages
-cpp_lines ../../t/input_files/cpp_lines.texi
+cpp_lines ../../t/input_files/cpp_lines.texi -c MESSAGE_ENCODING=UTF-8
# some command-line arguments when incorrect cause texi2any to die.
# easily tested by calling directly ./texi2any.pl and checking visually:
# ./texi2any.pl --footnote-style=bâd
# ./texi2any.pl --paragraph-indent=ïndent
# check non ascii command line arguments and css files
-non_ascii_command_line osé_utf8.texi --html --split=Mekanïk
--document-language=Destruktïw -c 'Kommandöh vâl' -D TÛT -D 'vùr ké' -U ôndef
-c 'FORMAT_MENU mînù' --macro-expand=@OUT_DIR@osé-texinfo.texi
--internal-links=@OUT_DIR@intérnal.txt --css-include çss.css --css-include
cêss.css --css-ref=rëf --css-ref=öref
+non_ascii_command_line osé_utf8.texi -c COMMAND_LINE_ENCODING=UTF-8 -c
MESSAGE_ENCODING=UTF-8 -c LOCALE_OUTPUT_FILE_NAME_ENCODING=UTF-8 --html
--split=Mekanïk --document-language=Destruktïw -c 'Kommandöh vâl' -D TÛT -D
'vùr ké' -U ôndef -c 'FORMAT_MENU mînù'
--macro-expand=@OUT_DIR@osé-texinfo.texi --internal-links=@OUT_DIR@intérnal.txt
--css-include çss.css --css-include cêss.css --css-ref=rëf --css-ref=öref
# test for the copying of image with non ascii characters for epub
-non_ascii_test_epub osé_utf8.texi --init epub3.pm -c 'EPUB_CREATE_CONTAINER 0'
+non_ascii_test_epub osé_utf8.texi -c COMMAND_LINE_ENCODING=UTF-8 -c
MESSAGE_ENCODING=UTF-8 -c LOCALE_OUTPUT_FILE_NAME_ENCODING=UTF-8 --init
epub3.pm -c 'EPUB_CREATE_CONTAINER 0' -c 'COMMAND_LINE_ENCODING UTF-8'
# check that the output is right when based on @setfilename
-non_ascii_test_rawtext osé_utf8.texi -c TEXINFO_OUTPUT_FORMAT=rawtext
+non_ascii_test_rawtext osé_utf8.texi -c COMMAND_LINE_ENCODING=UTF-8 -c
MESSAGE_ENCODING=UTF-8 -c LOCALE_OUTPUT_FILE_NAME_ENCODING=UTF-8 -c
LOCALE_INPUT_FILE_NAME_ENCODING=UTF-8 -c TEXINFO_OUTPUT_FORMAT=rawtext -c
'COMMAND_LINE_ENCODING UTF-8'
# check that the output is right when based on input file name
-non_ascii_no_setfilename_test_rawtext osé_utf8_no_setfilename.texi -c
TEXINFO_OUTPUT_FORMAT=rawtext
+non_ascii_no_setfilename_test_rawtext osé_utf8_no_setfilename.texi -c
COMMAND_LINE_ENCODING=UTF-8 -c MESSAGE_ENCODING=UTF-8 -c
LOCALE_OUTPUT_FILE_NAME_ENCODING=UTF-8 -c LOCALE_INPUT_FILE_NAME_ENCODING=UTF-8
-c TEXINFO_OUTPUT_FORMAT=rawtext
# test of non utf8 encoded file name in non utf8 document
# "Need recoded file names" string is used in test driving script
@@ -40,5 +40,5 @@ manual_include_accented_file_name_latin1_explicit_encoding
manual_include_accent
# fails to find the latin1 encoded include file as the locale encoding
# of the test suite is utf8
-manual_include_accented_file_name_latin1_use_locale_encoding
manual_include_accented_file_name_latin1.texi --info -c
DOC_ENCODING_FOR_INPUT_FILE_NAME=0 -D 'needrecodedfilenames Need recoded file
names'
+manual_include_accented_file_name_latin1_use_locale_encoding
manual_include_accented_file_name_latin1.texi --info -c
DOC_ENCODING_FOR_INPUT_FILE_NAME=0 -D 'needrecodedfilenames Need recoded file
names' -c MESSAGE_ENCODING=UTF-8 -c LOCALE_INPUT_FILE_NAME_ENCODING=UTF-8
diff --git a/tp/tests/run_parser_all.sh b/tp/tests/run_parser_all.sh
index 3054ba010f..e29a89ee1f 100755
--- a/tp/tests/run_parser_all.sh
+++ b/tp/tests/run_parser_all.sh
@@ -126,8 +126,8 @@ post_process_output ()
fi
}
-LC_ALL=en_US.UTF-8; export LC_ALL
-LANGUAGE=en_US.UTF-8; export LANGUAGE
+LC_ALL=C; export LC_ALL
+LANGUAGE=en; export LANGUAGE
prepended_command=
#prepended_command=time
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: C locale for some tests,
Gavin D. Smith <=