RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows
Alan Bateman
alanb at openjdk.org
Mon Jun 23 11:12:37 UTC 2025
On Mon, 16 Jun 2025 22:49:00 GMT, Xueming Shen <sherman at openjdk.org> wrote:
> Just wondering how Windows implementation really behaves for its 'case-insensitive-comparing" for "\u0131 vs "I". I would assume they actually are 2 'distinguished" files?
I think it depends on the locale. Also it is possible to configure NTFS, on a per directory basis, to disable the directory the case sensitivity. WindowsPath.compareTo is where we ended up for JDK 7, it would be good to validate this.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25788#issuecomment-2995994694
More information about the core-libs-dev
mailing list