23 Oct
2024
23 Oct
'24
11:18 a.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/locale.c:
locinfo->ctype1[0] = 0; locinfo->pctype = locinfo->ctype1+1;
+ cp_lcid = lcid_from_codepage(locinfo->lc_codepage);
This will not work for codepages that don't have lcid that uses them as default ansi code page (e.g. 437). I think that the correct approach is to use MultiByteToWideChar/LCMapStringW/WideCharToMultiByte instead. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6723#note_85850