This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LC_COLLATE vs. egrep -- bug or (non-)feature?


ht writes:

> Is this a feature, or a bug associated with the current ongoing
> discussion about locales:
>
>  > LC_ALL= egrep '^[a-b]l[dl]e.n$' /usr/share/dict/words
> aldern
>> LC_COLLATE= egrep '^[a-b]l[dl]e.n$' /usr/share/dict/words
> aldern
> Alleen
> Alleyn
>
> If it's a feature, how do I set LC_COLLATE w/o changing the other
> aspects of my locale?
>
> Relevant bits of cygcheck -s:
>
>  2651k 2011/08/05 C:\Cygwin\bin\cygwin1.dll
>         DLL version: 1.7.10
>         DLL identifier: cygwin1
> grep                      2.6.3-1              OK

Should have included my locale info:

> locale
LANG=
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_ALL=en_GB.utf8

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]