Mail Archives: djgpp/2003/01/31/00:17:26
> 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 -