bugTexi2HTML - Bugs: bug #37503, texi2html testsuite failures from...

 
 

bug #37503: texi2html testsuite failures from undefined DOCUMENT_ENCODING

Submitter:  Jack Howarth <jhowarth>
Submitted:  Thu 04 Oct 2012 12:30:05 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 04 Oct 2012 12:52:42 PM UTC, comment #2: 

This indeed looks like a fix to that issue, and I guess that it may be applied as is (only the texi2html.pl patch part the remaining doesn't make sense for texi2html).

Be aware that texi2html isn't maintained anymore, development has switched to a new implementation in texinfo, partly inspired by texi2html.

Patrice Dumas <pertusus>
Group administrator
Thu 04 Oct 2012 12:47:37 PM UTC, comment #1: 

Is http://lists.gnu.org/archive/html/texinfo-commits/2012-07/msg00050.html a fix for this issue? If so can it be applied onto the existing texi2hmtl 5.0 release?

Jack Howarth <jhowarth>
Thu 04 Oct 2012 12:30:05 PM UTC, original submission:  

The texi2html 5.0 release, when built on x86_64-apple-darwin12 using the patch...

diff -uNr texi2html-5.0/test/many_input_files/tex_l2h.sh texi2html-5.0.fink/test/many_input_files/tex_l2h.sh
--- texi2html-5.0/test/many_input_files/tex_l2h.sh      2010-02-20 17:26:08.000000000 -0500
+++ texi2html-5.0.fink/test/many_input_files/tex_l2h.sh 2012-10-02 11:04:44.000000000 -0400
@@ -18,7 +18,7 @@
 echo "$basename" > $logfile
 : > $stdout_file
 
-if tmp_dir=`mktemp -p /tmp -d l2h_t2h_XXXXXXXX`; then
+if tmp_dir=`mktemp -d l2h_t2h_XXXXXXXX`; then
   echo "\$L2H_TMP = '$tmp_dir';" > l2h_tmp_dir.init
   echo "1;" >> l2h_tmp_dir.init
 else
diff -uNr texi2html-5.0/test/many_input_files/tex_t4ht.sh texi2html-5.0.fink/test/many_input_files/tex_t4ht.sh
--- texi2html-5.0/test/many_input_files/tex_t4ht.sh     2009-09-15 14:22:02.000000000 -0400
+++ texi2html-5.0.fink/test/many_input_files/tex_t4ht.sh        2012-10-02 11:04:44.000000000 -0400
@@ -18,7 +18,7 @@
 echo "$basename" > $logfile
 : > $stdout_file
 
-if tmp_dir=`mktemp -p /tmp -d l2h_t2h_XXXXXXXX`; then
+if tmp_dir=`mktemp -d l2h_t2h_XXXXXXXX`; then
   echo "\$L2H_TMP = '$tmp_dir';" > l2h_tmp_dir.init
   echo "1;" >> l2h_tmp_dir.init
 else
diff -uNr texi2html-5.0/test/run_test.sh texi2html-5.0.fink/test/run_test.sh
--- texi2html-5.0/test/run_test.sh      2010-02-21 13:27:16.000000000 -0500
+++ texi2html-5.0.fink/test/run_test.sh 2012-10-02 11:04:44.000000000 -0400
@@ -108,7 +108,7 @@
 [ -d "$diffs_dir" ] || mkdir "$diffs_dir"
 [ -d "$out_dir" ] || mkdir "$out_dir"
 
-if tmp_dir=`mktemp -p /tmp -d l2h_t2h_XXXXXXXX`; then
+if tmp_dir=`mktemp -d l2h_t2h_XXXXXXXX`; then
   echo "\$L2H_TMP = '$tmp_dir';" > l2h_tmp_dir.init
   echo "1;" >> l2h_tmp_dir.init
 else
@@ -182,21 +182,21 @@
       $out_dir/$dir/*_tex4ht_tex.html
   fi
   if [ $ret = 0 ]; then
-    sed -i -e 's/^texexpand.*/texexpand /' "$out_dir/$dir/$basename.2"
-    sed -i '/is no longer supported at.*line/d' "$out_dir/$dir/$basename.2"
+    sed -i '' -e 's/^texexpand.*/texexpand /' "$out_dir/$dir/$basename.2"
+    sed -i '' '/is no longer supported at.*line/d' "$out_dir/$dir/$basename.2"
     if [ "$use_latex2html" = 'yes' ]; then
-      sed -i -e 's/CONTENT="LaTeX2HTML.*/CONTENT="LaTeX2HTML">/' -e \
+      sed -i '' -e 's/CONTENT="LaTeX2HTML.*/CONTENT="LaTeX2HTML">/' -e \
        's/with LaTeX2HTML.*/with LaTeX2HTML/' "$out_dir/$dir/"*"_l2h.html"
       #<C2><A0>"*"_images.pl" files are not guaranteed to be present
       for file in "${outdir}$dir/"*"_images.pl" "${outdir}$dir/"*"_labels.pl"; do
        if [ -f "$file" ]; then
-        sed -i -e 's/^# LaTeX2HTML.*/# LaTeX2HTML/' "$file"
+        sed -i '' -e 's/^# LaTeX2HTML.*/# LaTeX2HTML/' "$file"
        fi
       done
       for file in "${outdir}$dir/"*.htm* "${outdir}$dir/"*-l2h_cache.pm "${outdir}$dir/"*_l2h_images.pl; do
        if [ -f "$file" ]; then
        # different rounding on different computers !
-        sed -i -e 's/WIDTH="\([0-9]*\)\([0-9]\)"/WIDTH="100"/' -e 's/HEIGHT="\([0-9]*\)\([0-9]\)"/HEIGHT="\10"/' "$file"
+        sed -i '' -e 's/WIDTH="\([0-9]*\)\([0-9]\)"/WIDTH="100"/' -e 's/HEIGHT="\([0-9]*\)\([0-9]\)"/HEIGHT="\10"/' "$file"
        fi
       done
       rm -f "$out_dir/$dir/"*".aux"  "$out_dir/$dir/"*"_images.out"
diff -uNr texi2html-5.0/test/run_test_all.sh texi2html-5.0.fink/test/run_test_all.sh
--- texi2html-5.0/test/run_test_all.sh  2010-02-21 13:27:07.000000000 -0500
+++ texi2html-5.0.fink/test/run_test_all.sh     2012-10-02 11:04:44.000000000 -0400
@@ -134,7 +134,7 @@
   [ -d "${outdir}" ] || mkdir "${outdir}"
 done
 
-if tmp_dir=`mktemp -p /tmp -d l2h_t2h_XXXXXXXX`; then
+if tmp_dir=`mktemp -d l2h_t2h_XXXXXXXX`; then
   echo "\$L2H_TMP = '$tmp_dir';" > l2h_tmp_dir.init
   echo "1;" >> l2h_tmp_dir.init
 else

, still fails parts of 'make check' against FSF sed 4.2.1. The failures appear as repeated instances of...

+Use of uninitialized value in lc at ./../../texi2html.pl line 2592.

in test/many_input_files/diffs/indices.diff and  test/many_input_files/diffs/tex_t4ht.diff. This appears to be due to the use of DOCUMENT_ENCODING which is no longer initialized in texi2html.init as in earlier texi2html releases. How should this be fixed?

Jack Howarth <jhowarth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nieder
  • -email is unavailable- added by pertusus (Posted a comment)
  • -email is unavailable- added by jhowarth (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-05 nieder Carbon-Copy- Added nieder

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code