From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 457 invoked from network); 2 Jul 2001 07:33:33 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Jul 2001 07:33:33 -0000 Received: (qmail 11523 invoked by alias); 2 Jul 2001 07:32:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15200 Received: (qmail 11510 invoked from network); 2 Jul 2001 07:32:35 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Zsh hackers list" Subject: RE: bracket expressions and POSIX Date: Mon, 2 Jul 2001 11:33:07 +0400 Message-ID: <001001c102c9$3caff0d0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1010702071006.ZM2469@candle.brasslantern.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Importance: Normal > > } Another point is using collating elements, ranges etc ... anything that > } has to deal with locale. > > I've lost track of what happened to the strcoll() situation since PWS's > regex-like implementation of globbing was put in. There used to be #if 0 > code in glob.c (as of workers/7185) but it has completely disappeared. > It is more than just strcoll. Bracket expression is supposed to recognize collating elements and equivalence classes, and I still have no idea how to do it portably. Probably, when we see something like [[.ch.]] (valid for Spanish locale), we could try native regcompile to see if it succeeds. It seems the only possiblity to check it portably. The same for [[=a=]] that may match aby accented character depending on locale. But that means, that bracket expression may match more than one character; I do not know if our code is prepared to do it. Of course, [[.ch.]-z] is impossible without strcoll. -andrej