This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for Preview: jcf-io.c and Win32 case-insensitive filename handling


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/





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]