bug-texinfo
[Top][All Lists]
Advanced

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

Re: texinfo-6.0.90 pretest


From: Gavin Smith
Subject: Re: texinfo-6.0.90 pretest
Date: Tue, 22 Dec 2015 12:07:20 +0000

On 22 December 2015 at 11:08, Norbert Preining <address@hidden> wrote:
> Sorry, again me,
>
> I answer some of my questions ..
>
>>  test_scripts/coverage_formatting_fr.sh
>>  test_scripts/layout_formatting_fr_icons.sh
>
> These two tests succeed when I make a French locale *available*
> but not set by default.

Maybe we need a check for the available locales so we can skip those tests.

>
>>  test_scripts/formatting_documentlanguage_set_option.sh
>
> This error remains, and contains the following diff:
>  -  Ce document a &eacute;t&eacute; g&eacute;n&eacute;r&eacute; <em>a sunny 
> day</em> en utilisant <a 
> href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>
>  +  This document was generated on <em>a sunny day</em> using <a 
> href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
>  </font></p>

This is a mystery. First of all, what French locales did you install?
Was it fr_FR or fr_FR.UTF-8? (Don't know if that makes a difference,
but I'm casting around in the dark.)

Is there anything else in the diff? For example, when I replicate this
error by changing the language code to "xx" in the test file:

Index: formatting/tests-parser.txt
===================================================================
--- formatting/tests-parser.txt (révision 6578)
+++ formatting/tests-parser.txt (copie de travail)
@@ -38,7 +38,7 @@
 simplest_test_prefix_info simplest.texi --info
--set-customization-variable 'PREFIX truc'
 simplest_test_css simplest.texi --css-include file.css
 simplest_test_date_in_header simplest.texi
--set-customization-variable 'DATE_IN_HEADER 1'
-documentlanguage_set_option documentlanguage_set.texi --document-language fr
+documentlanguage_set_option documentlanguage_set.texi --document-language xx
 documentlanguage_set_unknown documentlanguage_set.texi
--document-language unknown
 documentlanguage_set_option_info documentlanguage_set.texi --info
--document-language fr
 float_copying float_copying.texi --split chapter

I get the following diff:

$cat formatting/diffs/documentlanguage_set_option.diff
diff -a -u -r 
formatting//diffs/staging_res/documentlanguage_set_option/documentlanguage_set.2
formatting//out_parser/documentlanguage_set_option/documentlanguage_set.2
--- 
formatting//diffs/staging_res/documentlanguage_set_option/documentlanguage_set.2
   2015-10-08 19:16:51.000000000 +0100
+++ formatting//out_parser/documentlanguage_set_option/documentlanguage_set.2
 2015-12-22 12:01:04.000000000 +0000
@@ -0,0 +1 @@
+texi2any: warning: xx is not a valid language code
diff -a -u -r 
formatting//diffs/staging_res/documentlanguage_set_option/documentlanguage_set.html
formatting//out_parser/documentlanguage_set_option/documentlanguage_set.html
--- 
formatting//diffs/staging_res/documentlanguage_set_option/documentlanguage_set.html
2015-10-08 19:16:51.000000000 +0100
+++ 
formatting//out_parser/documentlanguage_set_option/documentlanguage_set.html2015-12-22
12:01:05.000000000 +0000
@@ -42,7 +42,7 @@

 </head>

-<body lang="fr">
+<body lang="xx">
 <h1 class="settitle" align="center">Test @documentlanguage set</h1>
 <hr>

@@ -54,7 +54,7 @@
 </p>
 <hr>
 <p><font size="-1">
-  Ce document a &eacute;t&eacute; g&eacute;n&eacute;r&eacute; <em>a
sunny day</em> en utilisant <a
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>
+  This document was generated on <em>a sunny day</em> using <a
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
 </font></p>

================

Note the "texi2any: warning: xx is not a valid language code" warning:
do you get a similar error?

> So I thought that it might be the LANG setting, so I activated the
> LANG=fr_FR.UTF-8 and redid the checks - with the effect that tests
> in install-info started to fail with other translation errors.

This is easy enough to fix by setting LC_ALL=C in the test scripts to
get all messages in English, although I wonder why this problem has
never come up before.

I also saw the following appear when I ran "svn diff":

===================================================================
--- test_scripts/coverage_formatting_utf8_enable_encoding.sh    (révision 6879)
+++ test_scripts/coverage_formatting_utf8_enable_encoding.sh    (copie
de travail)
@@ -8,9 +8,8 @@
 one_test_logs_dir=test_log
 diffs_dir=diffs

-# Result is different for XS paragraph module
-TEXINFO_XS=omit ; export TEXINFO_XS

+
 if test "z$LONG_TESTS" != z"yes" && test "z$ALL_TESTS" != z"yes"; then
   echo "Skipping long tests that take a lot of time to run"
   exit 77

Apparently these test scripts are automatically generated somewhere so
the disabling of XS has to be done somewhere else.



reply via email to

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