From: Florian Weimer <fw@deneb.enyo.de>
To: Zorro Lang <zlang@redhat.com>
Cc: fstests@vger.kernel.org, Eryu Guan <guaneryu@gmail.com>,
Paul Smith <psmith@gnu.org>,
bug-make@gnu.org, Jim Meyering <meyering@fb.com>,
david@fromorbit.com
Subject: Re: xfstests can't be installed by running make install
Date: Wed, 18 Jul 2018 10:47:09 +0200 [thread overview]
Message-ID: <87pnzlexrm.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <20180718083126.GP4893@hp-dl360g9-06.rhts.eng.pek2.redhat.com> (Zorro Lang's message of "Wed, 18 Jul 2018 16:31:26 +0800")
* Zorro Lang:
> On Wed, Jul 18, 2018 at 08:04:05AM +0200, Florian Weimer wrote:
>> * Zorro Lang:
>>
>> >> > > This is related to this glibc bug:
>> >> > >
>> >> > > https://sourceware.org/bugzilla/show_bug.cgi?id=23393
>> >>
>>
>> > A stranger thing is:
>> > egrep [A-Z] match ABCD and bcd, but not match 'a'...
>>
>> That's the same issue as [0-9] not matching 9.
>>
>> > I already can't understand the new rules ...
>>
>> The range operator matches characters according to their collation
>> weight, and sincce the weight of 'a' is less than the weight of 'A',
>> 'a' is not included in the [A-Z] range.
>
> How to define/calculate the *weight* in your context? Why you say the
> weight of 'a' is less than the weight of 'A'
This is a concept from POSIX collation, based on a locale definition:
I hope this link is reasonably stable:
<http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_02>
Basically, collation is in alternative way of sorting strings,
different from codepoint order, and it is specifically designed to
take cultural conventions into account. Traditionally, most regular
expression range expression such as [a-z] follow collation order,
although this is not required by POSIX for non-C/non-POSIX locales.
>> This could be fixed by including all characters with the same primary
>> weight as the endpoints (so that [ā-ẑ] and [a-z] would end up being
>> the same). It makes the behavior more logical, but it doesn't fix
>> existing scripts.
>
> We find that the $LANG will affect how glibc deal with the wildcard.
> We all test on LANG=en_US.UTF=8, but if I set export LANG=C, then
> [a-z] and [A-Z] are all as expected, and xfstests make install works.
Right, this is expected: POSIX requires the behavior you need for the
"C" locale.
next prev parent reply other threads:[~2018-07-18 9:24 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-11 14:33 xfstests can't be installed by running make install Zorro Lang
2018-07-11 16:39 ` Eryu Guan
2018-07-11 16:54 ` Zorro Lang
2018-07-15 5:43 ` Dave Chinner
2018-07-15 7:11 ` Eryu Guan
2018-07-16 7:30 ` Zorro Lang
2018-07-16 11:48 ` Paul Smith
2018-07-17 3:32 ` Eryu Guan
2018-07-17 20:15 ` Florian Weimer
2018-07-17 22:58 ` Dave Chinner
2018-07-18 6:26 ` Florian Weimer
2018-07-18 3:15 ` Zorro Lang
2018-07-18 3:47 ` Zorro Lang
2018-07-18 4:05 ` Zorro Lang
2018-07-18 6:04 ` Florian Weimer
2018-07-18 8:31 ` Zorro Lang
2018-07-18 8:47 ` Florian Weimer [this message]
2018-07-18 10:12 ` Zorro Lang
2018-07-18 10:19 ` Zorro Lang
2018-07-19 16:21 ` Florian Weimer
2018-07-20 2:12 ` Zorro Lang
2018-07-18 10:56 ` spagoveanu
2018-07-17 5:24 ` Dave Chinner
2018-07-17 5:57 ` Zorro Lang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pnzlexrm.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=bug-make@gnu.org \
--cc=david@fromorbit.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=meyering@fb.com \
--cc=psmith@gnu.org \
--cc=zlang@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.