Mail Archives: djgpp/2003/02/01/05:50:49
> From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 30 Jan 2003 22:44:10 CST
>
> 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).
I wish it were that simple, but it isn't. The ``when-to-downcase''
issue pops up in other places, not just in `glob'. `readdir',
`getcwd', and `_fixpath' are 3 other prominent places. I think they
all need to be changed to support whatever alternative match
strategies you want to introduce. If you change `glob', but leave the
other functions unchanged, it's possible you will have strange
problems in this area. For example, GNU Make uses `glob' and
`readdir' internally, so these two should be in agreement as far as
file-name letter-case is concerned..
- Raw text -