[Bug 303] gawk-3.1.5

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Fri Aug 19 06:20:58 PDT 2005


------- Additional Comments From alexander at linuxfromscratch.org  2005-08-19 07:20 -------
Well, I was able to construct a semi-complete testcase for
HAVE_LANGINFO_CODESET. To prove that it is needed, add some debugging output to

sed -i.bak 's at dfa->is_utf8 = 1;@{dfa->is_utf8 = 1; fprintf(stderr, "UTF-8 locale
detected\\n");}@' regcomp.c

Then configure and make as usual:

./configure --prefix=/usr --libexecdir=/usr/lib

cat >>config.h <<"EOF"


Now the test:

LC_ALL=vi_VN ./gawk '//' /dev/null

(vi_VN is a UTF-8 based locale with the name not ending in UTF-8). Without
HAVE_LANGINFO_CODESET, gawk doesn't print the debugging message. With
HAVE_LANGINFO_CODESET, the message is printed. What's left for a clean testcase
is to find one more UTF-8 bug in dfa.c and try exploiting it in this locale.

Of course this comment is irrelevant if UTF-8 is not supported.

------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the lfs-book mailing list