GNU bug report logs - #15527
Failing test spencer1-locale for grep 2.14 on Solaris

Previous Next

Package: grep;

Reported by: Dagobert Michelsen <dam <at> opencsw.org>

Date: Fri, 4 Oct 2013 14:41:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 15527 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Dagobert Michelsen <dam <at> opencsw.org>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, Aharon Robbins <arnold <at> skeeve.com>,
 15527 <at> debbugs.gnu.org
Subject: Re: bug#15527: Failing test spencer1-locale for grep 2.14 on Solaris
Date: Wed, 16 Oct 2013 07:50:48 -0700
On Wed, Oct 16, 2013 at 6:49 AM, Dagobert Michelsen <dam <at> opencsw.org> wrote:
> Cool, thanks for digging this out! Can you please tell me which
> invocation of wcscoll fails? I would then open a call at Oracle
> about the issue.

Sure.  Here's a snippet from my debugging session.
This shows that \002 collates *after* \003 in that locale:
You can see I couldn't believe my eyes, so printed the offending
wcscoll expression twice :-)

2770        /* Build the table for single byte characters.  */
2771        for (wc = 0; wc < SBC_MAX; ++wc)
2772          {
2773            cmp_buf[2] = wc;
2774            if (wcscoll (cmp_buf, cmp_buf + 2) <= 0
2775                && wcscoll (cmp_buf + 2, cmp_buf + 4) <= 0)
2776              bitset_set (sbcset, wc);
2777          }
2778      }
(gdb) p wcscoll (cmp_buf + 2, cmp_buf + 4)
$27 = 3
(gdb) p cmp_buf+2
$28 = 0xffbff2f8 L"\002"
(gdb) p cmp_buf+4
$29 = 0xffbff300 L"\003"
(gdb) p wcscoll (cmp_buf + 2, cmp_buf + 4)
$30 = 3




This bug report was last modified 11 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.