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

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

Re: locale-dependent assertion failure in gawk 3.1.5


From: Andrew J. Schorr
Subject: Re: locale-dependent assertion failure in gawk 3.1.5
Date: Wed, 12 Jul 2006 16:30:38 -0400
User-agent: Mutt/1.4.2.1i

On Tue, Jul 11, 2006 at 11:03:20AM -0400, Andrew J. Schorr wrote:
> I am attaching a patch that adds 4 new test cases to gawk that uncover
> some of the recently reported problems with /dev/fd and with wide strings.

Actually, it may work better if the new wide* test cases default
to use en_US.UTF-8 instead of the C locale.  That way, the errors will
be seen by default.  The attached patch will get those tests to
use en_US.UTF-8 unless the user explicitly selects a locale by setting
the GAWKLOCALE environment variable.

So with this additional patch in place, unpatched gawk 3.1.5 reports
as follows:

bash-3.00$ make check
...
Locale environment:
        LC_ALL="C" LANG="C"
...
wideidx
./wideidx.ok _wideidx differ: byte 3, line 2
make[1]: [wideidx] Error 1 (ignored)
widesub
./widesub.ok _widesub differ: byte 28, line 2
make[1]: [widesub] Error 1 (ignored)
widesub2
./widesub2.ok _widesub2 differ: byte 31, line 2
make[1]: [widesub2] Error 1 (ignored)
widesub3
/bin/sh: line 1:   479 Aborted                 AWKPATH=. 
LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} ../gawk -f widesub3.awk 
<./widesub3.in >_widesub3 2>&1
./widesub3.ok _widesub3 differ: byte 1, line 1
make[1]: [widesub3] Error 1 (ignored)
...
devfd
./devfd.ok _devfd differ: byte 25, line 2
make[1]: [devfd] Error 1 (ignored)
...
5 TESTS FAILED

The io.c and wstr patches make all these errors go away...

Regards,
Andy

Attachment: tests.patch
Description: Text document


reply via email to

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