delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/11/15:52:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_YG
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
Subject: Re: LC_COLLATE vs. egrep -- bug or (non-)feature?
References: <f5by5wrjpxo DOT fsf AT calexico DOT inf DOT ed DOT ac DOT uk>
From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson)
Date: Tue, 11 Oct 2011 20:51:31 +0100
In-Reply-To: <f5by5wrjpxo.fsf@calexico.inf.ed.ac.uk> (Henry S. Thompson's message of "Tue, 11 Oct 2011 20:20:19 +0100")
Message-ID: <f5bmxd7joho.fsf@calexico.inf.ed.ac.uk>
User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT inf DOT ed DOT ac DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019