This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch for Preview: jcf-io.c and Win32 case-insensitive filename handling
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 12 Mar 2003 08:44:27 -0600
- Subject: Re: Patch for Preview: jcf-io.c and Win32 case-insensitive filename handling
- Reply-to: gnustuff at thisiscool dot com
Ranjit>> I might be wrong, but AFAIK, the proper way to do this is to define
Ranjit>> it as a host file system macro....
Ranjit>> Perhaps this should really go in libiberty and specified as an
Ranjit>> "extra" object for windows (see "libiberty/config/mh-windows")....
Mohan> I have a hard time imagining the utility of this for anything other
Mohan> than its intended purpose. Since Win32 is case-insensitive, requests
Mohan> to open a file in a case-insensitive manner should be honored in all
Mohan> but fringe cases like this.
One more thing: the current version only checks the case of the filename
component, not any containing directories. (This is documented in the code.)
If we were to generalize this, we would probably need to check the entire
pathname, which would involve multiple filesystem accesses and make the
compiler more inefficient.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/