Re: [hatari-devel] Problems with trailing backslash in path names (was: Problems with files greater 2 GiB) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Problems with trailing backslash in path names (was: Problems with files greater 2 GiB)
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Tue, 8 Jul 2025 19:16:00 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1751994962; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=+fgTtikkpM9Tu4FxM1cwPyD2CS3AToEgxrVcbiNe48I=; b=C6Pa2uJPTyJl694a0WsIRq7UugXItQxfrXn7ZQd6GOLgD9r2mB5vpENDG4irhWbxx3 3PQyTHvuSiI0zCTHWAmCnRmFvX7EFbFFoP0KOPfICmovJP+UEHtQYcoxTtRgB/SDKpIy ZKB9m2u86dHBMUdFEbtgvKUx8SBVzPKnZvIdiJGNhmcvFGhIz0wAjBynk0hyscpJohYm Xtg65lnQYHov5h8XroZ2XA32VDkU6DzKuDLva8NJyJC7Aba2YbKsezA9zlER9PUxilil 3nsP1ZSY1PuGYKLu4xJHR/ryY+2EkHmWVMzSSVrCvbMUF5ivZThsHel590VzLuoJC6Wq US9A==
- Arc-seal: i=1; a=rsa-sha256; t=1751994962; cv=none; d=strato.com; s=strato-dkim-0002; b=Yaxt7hbLtHHXmEns3hePmCbbo8QZyBW1ax9CzUjZLmKxdGkbUKsR9LuszRf4KZAU+5 aaWPjtS3vCHTujhVCJXq0YMHGLgWJUkMQ7AMh9Z9d2CMdB9XjxYqNDMpVXkomKAVlrYH 6baUp+CE5otjvV0Rp8rj/qW+vZhDK68Kcv7XkSfu3aJc6Xy+WwQHeshXXffZxn9NN57T aaZKauChoDSh/Wee7GkGynwUsEgUeyB9thQtJi85tvdLbmGlkiAV1Re7OP4Zvlc1Vxm5 NESMDG0yg5EA3HXzCOCf8Z7g8bDi3ChHZ1oGqh5pXRgHNtESJ8Kz072TVLflWtRdCG7d /2Bg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1751994962; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=+fgTtikkpM9Tu4FxM1cwPyD2CS3AToEgxrVcbiNe48I=; b=U1AHbjPHTsyGmgmHwkYj2TZzTlcAnb3acASxEi6yec0lg3Q8AHLfbQl/Vfm2dLBUgT RjkqqAAbN5aeVVOHltIsITYNK9posNu4k9aQJfSJVdmE4QJLVkEeNGLe+havX4F4k+fP 2ZkT4uyJQhQz7aq9dNOpvMb6cOoie3uSRaLxyyrVX8oyKNbNmETp9W9WHunMZYUHob89 YPwP2zo49Llbr61h65OwRAO2MLrW61Ldd8dC+S8NoX5OJgWVSRcQp+61ZsV+MtFhT6FY M/uhd4xBIzUHEeDRBy4OOlblEkVw6Ug/bj+cSWSP6FkR22KCBKVhNl20lH6kQfoukYti R9Kg==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1751994962; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=+fgTtikkpM9Tu4FxM1cwPyD2CS3AToEgxrVcbiNe48I=; b=w7f1WTpEV7twxoSge9TihcsTcqYTGRyxhlsScEhUD4ClkoMb83MCH/PakjHg70xT45 PL3h0COesCK/LHJPFrBA==
This remindes me of a recent change in the upcoming JDK 25:
"
File operations with directory or file names ending in a space now consistently fail on Windows (JDK-8354450)
core-libs/java.io
File operations on a path with a trailing space in a directory or file name, e.g. "C:SomeFolderSomeFile ", now fail consistently on Windows. For example. File::mkdir will return false, or File::createNewFile will throw IOException if an element in the path has a trailing space. Such pathnames are not legal on Windows. Prior to JDK 25, operations on a File created from such an illegal abstract pathname could appear to succeed when in fact they did not.
"
This is the same issue, isn't it?
Best regards
Uwe
>
>
> > Am 29.06.2025 um 13:39 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
> >
> > Am Sun, 29 Jun 2025 08:19:39 +0200
> > schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> >
> >> Large file support seems to work for Windows users. Thanks again!
> >>
> >> But there seems to be a new issue when enabling large file support: Some functions like stat() on Windows do no longer work with path names containing a trailing backslash. They did before enabling large file support. Do you experience the same on Hatari?
> >
> > So far I'm not aware of any complaints yet.
> >
> > Thomas
> >
>
> After more testing I can confirm that when enabling large file support on Windows there is a big problem with path strings ending with a backslash. Obviously stat() will reliably fail if the path parameter contains a trailing backslash. The backslash is interpreted as an escape character. This will for example cause File_DirExists() to fail. This is of course not the only failure.
>
> I think this needs to be fixed in the GUI code (for some reason it adds trailing backslashes to all path strings). That should be done before the next release (2.6.1) as this is a severe bug.
>