bug-gnu-utils
[Top][All Lists]
Advanced

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

[gawk] bug with testcase mbfw1


From: Steffen Schuler
Subject: [gawk] bug with testcase mbfw1
Date: Fri, 2 May 2008 04:52:23 +0200

Hi,

here a bug in the current CVS-version with gawk/make check and its tested
patch:

  $ cd gawk-stable
  $ ./configure
  $ make
  $ make check
  [snip]
  mbfw1
  ./mbfw1.ok _mbfw1 differ: byte 6, line 2
  [snip]

The bug originates from not using locale en_US.UTF-8 in the testcase mbfw1.
Here an easy patch for that:

--
Steffen

-------------------8<------------------------------------------
--- gawk-3.1.6a/test/Makefile.am    2008-04-23 21:36:13.000000000 +0200
+++ gawk-3.1.6a.fixed/test/Makefile.am    2008-05-02 04:21:34.000000000
+0200
@@ -1170,6 +1170,12 @@
     $(AWK) -f $(srcdir)/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@
     @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@

+mbfw1::
+    @echo $@
+    @GAWKLOCALE=en_US.UTF-8 ; export GAWKLOCALE ; \
+    $(AWK) -f $(srcdir)/address@hidden $(srcdir)/address@hidden >_$@ 2>&1 || 
echo EXIT CODE:
$$? >> _$@
+    @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
+

 # Targets generated for other tests:
 include Maketests

Attachment: gawk-patch.2.diff
Description: Text Data


reply via email to

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