Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-05-11 Thread LIU Hao
在 2023/5/12 00:03, JonY via Mingw-w64-public 写道: I'm guessing dirname is not threadsafe? No objections if that is a known limitation. POSIX says 'the dirname() function need not be thread-safe' [1] and also for `basename()` [2]. I will make a final check on this patch later today, before

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-05-11 Thread JonY via Mingw-w64-public
On 5/11/23 14:52, LIU Hao wrote: 在 2023-04-28 09:47, LIU Hao 写道: 在 2023/4/2 22:00, LIU Hao 写道: This is a revised patch basing on that. `do_get_path_info()` now contains no half-way return statement. The generic code below already handles empty paths. For UNC paths, the first two components

Re: [Mingw-w64-public] [PATCH] gdtoa: Sync to match the latest version at netlib.org

2023-05-11 Thread Jameson Nash
No, I missed your message since I am not on the mailing list itself. Thanks! Whelp, you apparently found a bug introduced into gdtoa itself, since the same test program run on linux against their current code also fails with the same incorrect byte ordering of the output: gdtoa$ ./a.out got:

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-05-11 Thread LIU Hao
在 2023-04-28 09:47, LIU Hao 写道: 在 2023/4/2 22:00, LIU Hao 写道: This is a revised patch basing on that. `do_get_path_info()` now contains no half-way return statement. The generic code below already handles empty paths. For UNC paths, the first two components are taken as the prefix, which