> On 2025-02-12 Martin Storsjö wrote: > > I remember there was a discussion earlier about e.g. the use of > > WC_NO_BEST_FIT_CHARS to WideCharToMultiByte wrt support for older > > versions of Windows - is this fine for us to use, or do we need to > > try to only use it when supported?
At least there's no problem on WinXP and later. WideCharToMultiByte: - CP_ACP and CP_OEMCP with WC_NO_BEST_FIT_CHARS work on Win98SE and WinXP. Since Win98SE is a few months older than W2k, I guess that this should work on W2k as well. - CP_UTF8 works on Win98SE and WinXP but only without flags. WC_ERR_INVALID_CHARS is documented to be for Vista and later, so this isn't a surprise. - WC_NO_BEST_FIT_CHARS doesn't work on Win95 (4.00.950). Had it worked, it would have felt OK to guess that it works on NT4 too. - CP_UTF8 doesn't work on Win95. MultiByteToWideChar: - CP_ACP and CP_OEMCP with MB_ERR_INVALID_CHARS work even on Win95. - CP_UTF8 with MB_ERR_INVALID_CHARS works on WinXP. It doesn't work on Win95 or Win98SE. Support for CP_UTF8 should only matter with UCRT when using UTF-8 locale. Thus the limitations with CP_UTF8 shouldn't be an issue. The new dirent code doesn't work on Win9x, but it was quick to test on those anyway. -- Lasse Collin _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public