zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: yamagata@nwgpc.kek.jp
Cc: stucki@math.fu-berlin.de, zsh-workers@math.gatech.edu
Subject: Re: Is this a bug in globbing
Date: Tue, 10 Sep 1996 23:30:59 +0200 (MET DST)	[thread overview]
Message-ID: <199609102131.XAA00407@hzoli.ppp.cs.elte.hu> (raw)
In-Reply-To: <19960911040205X/yamagata@nwgpc.kek.jp> from "yamagata@nwgpc.kek.jp" at "Sep 11, 96 04:02:05 am"

> > I used a statement 'ls ...' with the pattern 'rc?.d/*[A-Z]'
> > and got lots of names with 'small' characters at the end !
[...]
> After automatic configure,
> there are one or two lines "#define HAVE_STRCOLL 1" in config.h.
> 
> If you comment out these lines, probably the problem may be solved.
> 
> //
> 
> Some OS use strcasecmp in strcoll,
> in case of absence of locale data used by strcoll().

As it turns out this is not a bug.  It seems that in the de_DE locale and
probably in other locales as well the upper and lowercase letters have the
same weight determined by the LC_COLLATE locale category.  POSIX says that
range expressions must use the collating order determined by LC_COLLATE.
Of course POSIX also tells that range expressions shall not be used in
Strictly Conforming POSIX.2 Applications because their behavior is
dependent on the collating sequence.  POSIX conforming applications should
use character class expressions instead which are not yet supported by zsh
:-(.  Setting LC_COLLATE to C or POSIX should cure these problems but note
that is also affects sorting.

Zoltan


      reply	other threads:[~1996-09-11  4:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-09 22:36 C. v. Stuckrad
1996-09-10 19:02 ` yamagata
1996-09-10 21:30   ` Zoltan Hidvegi [this message]

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=199609102131.XAA00407@hzoli.ppp.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=stucki@math.fu-berlin.de \
    --cc=yamagata@nwgpc.kek.jp \
    --cc=zsh-workers@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).