public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13118] New: Correct posix/bug-regex32 testsuite failure
@ 2011-08-19 21:06 jpsinthemix at verizon dot net
  2011-09-09  2:58 ` [Bug libc/13118] " drepper.fsp at gmail dot com
  2014-06-27 12:24 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jpsinthemix at verizon dot net @ 2011-08-19 21:06 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/13118] Correct posix/bug-regex32 testsuite failure
  2011-08-19 21:06 [Bug libc/13118] New: Correct posix/bug-regex32 testsuite failure jpsinthemix at verizon dot net
@ 2011-09-09  2:58 ` drepper.fsp at gmail dot com
  2014-06-27 12:24 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-09-09  2:58 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13118

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-09-09 02:58:07 UTC ---
I added the patch.

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/13118] Correct posix/bug-regex32 testsuite failure
  2011-08-19 21:06 [Bug libc/13118] New: Correct posix/bug-regex32 testsuite failure jpsinthemix at verizon dot net
  2011-09-09  2:58 ` [Bug libc/13118] " drepper.fsp at gmail dot com
@ 2014-06-27 12:24 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13118

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19 21:06 [Bug libc/13118] New: Correct posix/bug-regex32 testsuite failure jpsinthemix at verizon dot net
2011-09-09  2:58 ` [Bug libc/13118] " drepper.fsp at gmail dot com
2014-06-27 12:24 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).