20 Oct
2024
20 Oct
'24
4:52 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/ctype.c:
else locinfo = locale->locinfo;
- if((unsigned)c < 256) + if((unsigned)c < 256 && locinfo->mb_cur_max == 1)
I guess that this code should be changed to something like: ```c if((unsigned)c < 256) { if(locinfo->pctype[c] & _LEADBYTE) return c; return locinfo->pclmap[c]; } ``` but it needs more tests. Also a quick check shows that pctype is generated incorrectly for DBCS codepages - it needs to be fixed first. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6703#note_85540