This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13118] New: Correct posix/bug-regex32 testsuite failure
- From: "jpsinthemix at verizon dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 19 Aug 2011 21:06:21 +0000
- Subject: [Bug libc/13118] New: Correct posix/bug-regex32 testsuite failure
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13118
Bug #: 13118
Summary: Correct posix/bug-regex32 testsuite failure
Product: glibc
Version: 2.14
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: jpsinthemix@verizon.net
Classification: Unclassified
Building glibc-2.14 (with gcc-4.6.1, binutils-2.21.1, and linux-3.0.3, the
new test posix/bug-regex32.out fails during a chroot build due to inability
to set locale:
cat glibc-2.14-build/posix/bug-regex32.out
setlocale failed
Note that tests posix/bug-regex30/31 pass as expected. The failure of
posix/bug-regex32 appears to be due to locale environment not being set
up prior to the test. The following patch appears to fix the issue:
--- glibc-2.14.old/posix/Makefile 2011-05-31 00:12:33.000000000 -0400
+++ glibc-2.14.new/posix/Makefile 2011-08-19 03:21:28.696382448 -0400
@@ -208,6 +208,7 @@
bug-regex25-ENV = LOCPATH=$(common-objpfx)localedata
bug-regex26-ENV = LOCPATH=$(common-objpfx)localedata
bug-regex30-ENV = LOCPATH=$(common-objpfx)localedata
+bug-regex32-ENV = LOCPATH=$(common-objpfx)localedata
tst-rxspencer-ARGS = --utf8 rxspencer/tests
tst-rxspencer-ENV = LOCPATH=$(common-objpfx)localedata
tst-pcre-ARGS = PCRE.tests
With this patch, posix/bug-regex32 passes with the output:
cat glibc-2.14-build/posix/bug-regex32.out
regexec = 1 "No match"
Here is the relevant code from glibc-2.14/posix/bug-regex32.c:
11 if (setlocale (LC_CTYPE, "de_DE.UTF-8") == NULL)
12 {
13 puts ("setlocale failed");
14 return 1;
15 }
Note that the above patch applies cleanly to the current master:
http://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/master
thanks for your time,
John
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.