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:17:41 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1751995062; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=g6hEO1KpYp1YTOPFPjJ6tewa0QM17x+X6SJQoIcAjyE=; b=B6CfuF3QD4UK6MJUYxVk3v2s97NkPI2UCtiRcIgr/THD7ZH2b6q0RiGo6QBF/9QEW/ 3FOXlu7oSRorxbkzFF97JMkkOmv+IcL6dvyWrv7XTsSgTZTNk9+j+WX5idWkjN6ix/yK s3VX5ZHjmp9cNW2mm0EMjBcAukgWJ2QCQLxXnplIUaOq3wh1ED3ab0po0HbwvApA7AJT 92uQ/TciU100eSdcV243My87kCXNeJ4Lu8r83PVM7kBUv/6lkp3DZ/RyJApg1wGgmYJj HAPqTsz/3Z4tSthmWN/jRuFsH/bS4eT9Ml3/TLcUu5Kd0X6EHGRA3pww08rdr2gvSQSq YFOA==
- Arc-seal: i=1; a=rsa-sha256; t=1751995062; cv=none; d=strato.com; s=strato-dkim-0002; b=jxcu5afH5zHk6WDBCV8BfUWWmsvgvsiqr1DtQ75hsBHd+0drcdk5vD8vO47vkgdGM4 lrfmU5cPe9SAfG4U7T/e/g+vyO6gsb1pHNF+9JBInFxm10i2+yuUYD2lXt5mH3LYTmGe CPxnuWo/WsJZLAiYg0wRtZO1YI+xYHrf4oXkyXo0Zxt1YCQCxIo4gm6e5YtiOTKwbtPu pXhDKPeupQXUH3mezAJaAu3QCA8BMusiax1Beu0F8Xc1O4svfNxx8eKeP9Z8xL5rFme1 GwXUNJlFUEQgHdgPaOo+GVSwqVBDXp4w3aIj5FB7LU2x0M00WqPGFcXMi8BOK+o8lwFt 15JA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1751995062; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=g6hEO1KpYp1YTOPFPjJ6tewa0QM17x+X6SJQoIcAjyE=; b=q653X+KoWNHhr8NuymyU8K0sGunVIucaKCXdXqm8BGB3lq+7fHvX7mLl4AXY/FC5az d/7Ki+S+phBymEyCdfa8nLqjkJMqM4OFgJ3TY5QLtUcnRxno8w34R5B7VNiOQIf0uSsX ldmG0aZwR9fxlZnNlpJs3YPTHvCk5i9AOUb3fga1pHU87s44XvUGJ2/2N8m2gIpQsJ7i I4jfrGvDs8IpJ5lME4kkHRKiB3t1oot764fPCdDhrm2RC3ormez3r67xm7XeKLUV/2JO mrNqMbkmrcl8fpePlpCrD5u/S0NOP8PTfcd8lA1S4R1u8nirtV6dPp/H9wXTD9Ksju+Z MSUQ==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1751995062; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=g6hEO1KpYp1YTOPFPjJ6tewa0QM17x+X6SJQoIcAjyE=; b=LNj3B541vNseKy8UIbVj57vBCI64m6HIpRH5mtbISJjl8wwL7KUT1TDbatUYqktr8K MFbuaJsL9uyu8coq+cDg==
SoZry, just noticed right now that this is about a space, not a slash :) ...
> 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.
> >
>
>