Re: [Mingw-w64-public] [PATCH 1/2] crt: Don't use best-fit mapping in wctob(), wcrtomb(), and wcsrtombs()

2025-01-11 Thread Lasse Collin
This is broken. Some code pages don't allow WC_NO_BEST_FIT_CHARS. -- Lasse Collin ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [PATCH 2/2] crt: wctob: Fix return value for negative char values

2025-01-11 Thread Lasse Collin
--- mingw-w64-crt/misc/wctob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-crt/misc/wctob.c b/mingw-w64-crt/misc/wctob.c index d694cb527..b19effb99 100644 --- a/mingw-w64-crt/misc/wctob.c +++ b/mingw-w64-crt/misc/wctob.c @@ -25,5 +25,5 @@ int wctob (wint_t wc )

[Mingw-w64-public] [PATCH 1/2] crt: Don't use best-fit mapping in wctob(), wcrtomb(), and wcsrtombs()

2025-01-11 Thread Lasse Collin
Previously these functions failed with EOF or EILSEQ only when there was no best-fit character available and a replacement character had been substituted. Now these fail if conversion isn't lossless. --- mingw-w64-crt/misc/wcrtomb.c | 2 +- mingw-w64-crt/misc/wctob.c | 2 +- 2 files changed, 2 i