http://bugs.linuxfromscratch.org/show_bug.cgi?id=303
------- Additional Comments From [EMAIL PROTECTED] 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
regcomp.c:
sed -i.bak '[EMAIL PROTECTED]>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"
#define HAVE_LC_MESSAGES 1
EOF
make
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.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page