Re: [Mingw-w64-public] [PATCH] crt: Make CRT buildable with `-masm=intel`

2023-03-23 Thread Jacek Caban via Mingw-w64-public
On 3/23/23 07:03, Martin Storsjö wrote: On Wed, 22 Mar 2023, Jacek Caban wrote: On 3/22/23 15:21, LIU Hao wrote: 在 2023-03-22 21:07, Jacek Caban 写道: That's the motivation for this? I can see a point in supporting both syntaxes in headers (which may be included by users with various compiler

Re: [Mingw-w64-public] [PATCH] Fix trunsaction Bug in dirname.c and filename.c

2023-03-23 Thread 傅继晗
Sorry,Since starting in Windows 10 version 1803 (10.0.17134.0), the Universal C Runtime supports using a UTF-8 code page. Two bytes for every wide character may not be enough,best to use wcstombs (NULL, wcstr, 0) to get the size correctly.here is the patch. 傅继晗 于2023年3月23日周四 16:21写道: > I was goi

[Mingw-w64-public] [PATCH] Fix trunsaction Bug in dirname.c and filename.c

2023-03-23 Thread 傅继晗
I was going to refactor these two functions, but after LIU Hao's explanation, I realized that I just took it too easy, and more thought should be given to windows than linux, so I gave up on refactoring and just fixed its bugs. Even if the locale was consistent with the input filename, it would

Re: [Mingw-w64-public] [PATCH] rewrite the dirname.c and basename.c without wide character processing

2023-03-23 Thread LIU Hao
在 2023/3/23 14:42, 傅继晗 写道: Thanks for your attention! I really understand this time.But I still have a question,why dirname in linux glib doesn't process MBCS? Maybe they think input as UTF-8 as default? It's likely that no encoding has been abusing the ASCII forwardslash, so it needs no speci