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: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Sun, 29 Jun 2025 08:19:39 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=qMY5CrynMgwjFQxdw5x+yj+u1kIsOQSjlrw5mmTzhBI=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id:x-icloud-hme; b=TaDjCazFk4MWHzyegF1Xeh/dNH5I5RK5MVcIxwoFQe5yX8ui7ZopqmqjjOfa6HFcV hJpUN5VGmlQ2xv1evr/ZcGWvBCHNJRKJmUwDS8pPvYfowgLVVI/t7a4DJfFPZkAl66 slL0dLCa7Ty7HmRlLAwKMArUCsL4E6yQ2/Bw2H892HXDA2B1g/NEMVd6uV2CGlD2rh zVv3k6EL2DGFrtACWOeOxcrGDIbS0XWd74yhkfPunII9hc60i74z11bwkBMZUvZbXp K6vl1kjCl2K0+vjLcZ/Pz1qbsk4NDwA5hZcdgQJ7jVUeMLOu8BUAwWycgZz28vHMj7 sc/Rj7CqUsvaA==
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?
In general it seems to be not recommend to add trailing (back)slash to path names. But Hatari is very strict in adding those.
> Am 28.06.2025 um 20:37 schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
>
> Christian and Otto, thank you very much for the help!
>
> I was misreading the CMake code thinking that check_large_file is executed in place. The Hatari method looks good. I can‘t test myself but I am confident that using this in Previous will fix the issue for Windows users.
>
>> Am 28.06.2025 um 11:37 schrieb Christian Zietz <czietz@xxxxxxx>:
>>
>> Andreas Grabher schrieb:
>>
>>> I have a problem handling files greater than 2 GiB in Previous on some platforms. For example in Windows it seems that off_t is a signed 32-bit integer. This means that many functions in file.c will fail with large files.
>>> I think this can be fixed by adding -D_FILE_OFFSET_BITS=64 somewhere, probably right before the check for large file support in Hatari?
>>
>> You mean like it is done here?
>> https://github.com/hatari/hatari/blob/36d3b3ca3635a6573859d5a1ec4d7421420b435c/CMakeLists.txt#L169
>>
>> I have used hard disk images larger than 2 GiB with Hatari on Windows.
>>
>> Regards
>> Christian
>> --
>> Christian Zietz - CHZ-Soft - czietz@xxxxxxx
>> WWW: https://www.chzsoft.de/
>> New GnuPG-Key-ID: 0x8708B34C827B159E
>>
>>
>
>