Re: [Mingw-w64-public] is[w]ctype disagree whether tab is _BLANK

2025-06-01 Thread Kirill Makurin
I am sorry, I forgot to mention important detail: _BLANK is used to implement `is[w]print` macros in `[w]ctype.h`. This means that they may return non-zero for tab in some cases. It is been quite a while since I discovered it, and some details have slipped my mind. Disregard my comment regardi

[Mingw-w64-public] is[w]ctype disagree whether tab is _BLANK

2025-06-01 Thread Kirill Makurin
Hi, (It is not directly related to mingw-w64, but this got me very confused and this issue is related to CRTs.) The `_isctype('\t', _BLANK)` and `iswctype(L'\t', _BLANK)` disagree. They disagree not only for different locales (which would make sense), but also for different CRTs. I attached a

[Mingw-w64-public] Inconsistent behavior of btowc with "C" locale

2025-06-01 Thread Kirill Makurin
Hi, I have noticed that behavior of `btowc` function is inconsistent between MSVCRT and UCRT when current locale is "C". UCRT's `btowc` converts bytes in range 128-255 as if source charset was ISO-8859-1 (code page 28591). MSVCRT's (on Windows 11) fails and returns `WEOF`. I have attached a si

[Mingw-w64-public] winpthreads: make testing shared library work

2025-06-01 Thread Kirill Makurin
See commit message. - Kirill Makurin From a0a35f2d0eefed69c2d789eb50fb222b9566768a Mon Sep 17 00:00:00 2001 From: Kirill Makurin Date: Sun, 1 Jun 2025 15:54:23 +0900 Subject: [PATCH] winpthreads: make testing shared library work Running `make check` when configured with `--disable-static`, depen