zsh-workers
 help / color / mirror / code / Atom feed
* Is this a bug in globbing
@ 1996-09-09 22:36 C. v. Stuckrad
  1996-09-10 19:02 ` yamagata
  0 siblings, 1 reply; 3+ messages in thread
From: C. v. Stuckrad @ 1996-09-09 22:36 UTC (permalink / raw)
  To: Zsh workers list


I used a statement 'ls ...' with the pattern 'rc?.d/*[A-Z]'
and got lots of names with 'small' characters at the end !

It seems so far as if it happenes ONLY IF 'numericglobsort' is set!

Do I overlook something ? Or is that a bug ?

It seems (tested with different [_-_] margins) that
in the set of characters 'case' is ignored ?

This happened on Solaris 2.4, the zsh is Version 3.0.0
default-(automatic)-configured, compiled with gcc.

Christoph von Stuckrad       * *  | talk to  | <stucki@math.fu-berlin.de> \
Freie Universitaet Berlin    |/_* | nickname | ...!unido!fub!leibniz!stucki|
Fachbereich Mathematik, EDV  |\ * | 'stucki' | Tel:+49 30 838-7545{9|8}    |
Arnimallee 2-6/14195 Berlin  * *  |  on IRC  | Fax:+49 30 838-5913        /


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is this a bug in globbing
  1996-09-09 22:36 Is this a bug in globbing C. v. Stuckrad
@ 1996-09-10 19:02 ` yamagata
  1996-09-10 21:30   ` Zoltan Hidvegi
  0 siblings, 1 reply; 3+ messages in thread
From: yamagata @ 1996-09-10 19:02 UTC (permalink / raw)
  To: stucki; +Cc: zsh-workers

Hello,

> I used a statement 'ls ...' with the pattern 'rc?.d/*[A-Z]'
> and got lots of names with 'small' characters at the end !

> It seems so far as if it happenes ONLY IF 'numericglobsort' is set!

> Do I overlook something ? Or is that a bug ?

> It seems (tested with different [_-_] margins) that
> in the set of characters 'case' is ignored ?

> This happened on Solaris 2.4, the zsh is Version 3.0.0
> default-(automatic)-configured, compiled with gcc.

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().

I am using FreeBSD, it uses strcasecmp in strcoll(). :-)

					yamagata


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is this a bug in globbing
  1996-09-10 19:02 ` yamagata
@ 1996-09-10 21:30   ` Zoltan Hidvegi
  0 siblings, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1996-09-10 21:30 UTC (permalink / raw)
  To: yamagata; +Cc: stucki, zsh-workers

> > 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-09-11  4:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-09 22:36 Is this a bug in globbing C. v. Stuckrad
1996-09-10 19:02 ` yamagata
1996-09-10 21:30   ` Zoltan Hidvegi

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).