delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/31/00:17:26

From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Command line wildcard expansion under Win2K
Date: Thu, 30 Jan 2003 22:44:10 CST
Organization: Rice University, Houston TX
Lines: 21
Message-ID: <3e39ff1a.sandmann@clio.rice.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1030130095126 DOT 2797A-100000 AT is> <3e394a9a DOT sandmann AT clio DOT rice DOT edu> <b1c3go$5d2$1 AT sass2141 DOT sandia DOT gov>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1043988667 12213 128.42.105.3 (31 Jan 2003 04:51:07 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: 31 Jan 2003 04:51:07 GMT
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I personally see no reason why such a pattern should not work, but clearly
> there is a lot of logic involved trying to provide UNIX like behavior under
> MS-DOS and WinXX.  Personally, I would prefer all 8.3 filenames returned in
> lower case, and all others left alone, and for matches to be case
> insensitive no matter what, but I can see that others might want something
> else.  When I get a chance, I wll make and submit a patch that works the way
> I prefer, case-insensitive matching everywhere.  I will probably not bother
> changing anything in how filenames are actually returned.

The module which controls this is
 djgpp/src/libc/posix/glob/glob.c
It's included in the djlsr203.zip

Look at the variable "caseless" (in particular where it is set when the
name has upper case characters and use_lfn).

If you want proper downcasing of 8.3 names under Win2K, you can also grab 
the updated CVS source:
 http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/posix/glob/glob.c
but you will also need to grab the new _is_DOS83 routine:
 http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/dos/lfn/is_dos83.c

- Raw text -


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