Re: [Mingw-w64-public] [PATCH 07/10] crt: Increase NAME_MAX from 255 to 765 (ABI break)

2025-01-17 Thread LIU Hao
在 2025-01-17 00:38, Lasse Collin 写道: NAME_MAX is a POSIX constant; Windows doesn't define it. For this reason, assume that NAME_MAX is only about filenames in multibyte representation. In the UTF-8 code page, filenames can be up to 255 * 3 bytes excluding the terminating null character. (It's not

Re: [Mingw-w64-public] getmainargs changes

2025-01-17 Thread Pali Rohár
On Friday 17 January 2025 15:22:30 Lasse Collin wrote: > On 2025-01-16 Pali Rohár wrote: > > On Thursday 16 January 2025 18:32:08 Lasse Collin wrote: > > > I see that sizeof(DIR) depends on _USE_32BIT_TIME_T because DIR > > > contains _finddata_t or _wfinddata_t. Luckily no one is supposed to > > >

Re: [Mingw-w64-public] getmainargs changes

2025-01-17 Thread Lasse Collin
On 2025-01-16 Pali Rohár wrote: > On Thursday 16 January 2025 18:32:08 Lasse Collin wrote: > > I see that sizeof(DIR) depends on _USE_32BIT_TIME_T because DIR > > contains _finddata_t or _wfinddata_t. Luckily no one is supposed to > > access that structure directly. > > That is really bad. So it