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.