https://bugs.winehq.org/show_bug.cgi?id=35009
--- Comment #14 from zaplo00@mailfence.com --- This is still an issue. I did some testing in windows 8.1, with JP non-unicode locale.
I put conditional breakpoint to loop at 0x0043CD7E to break when something starting CHR_ is tested (so it happens only at error place). Before them are these:
CMP: &"BG054_020" and &"BG033_021b" CMP: &"BG040_110" and &"BG033_021b" CMP: &"BG037_010b" and &"BG033_021b" CMP: &"BG034_010b" and &"BG033_021b" CMP: &"BG033_021b" and &"BG033_021b"
Then it tries different values against str2 (CHR_夢_幼少)
1. 079DA017 43 48 52 5F 90 E1 8D D8 5F 8A EC 5F 93 7E 90 A7 CHR_雪菜_喜_冬制 079DA027 95 9E 4C 5F 95 5C 8F EE 00 服L_表情
2. 079DA544 43 48 52 5F 94 F2 92 B9 5F 8A EE 5F 90 85 92 85 CHR_飛鳥_基_水着 00
3. 079D8CBD 43 48 52 5F 96 BE 93 FA 95 E0 5F 8A EE 5F 83 81 CHR_明日歩_基_メ 079D8CCD 83 43 83 68 95 9E 00 イド服
4. 079D85B3 43 48 52 5F 96 B2 5F 94 DF 5F 83 70 83 57 83 83 CHR_夢_悲_パジャ 079D85C3 83 7D 4C 5F 95 5C 8F EE 00 マL_表情
5. 079E8AFF 43 48 52 5F 96 BE 93 FA 95 E0 5F 8A EC 5F 89 C4 CHR_明日歩_喜_夏 079E8B0F 90 A7 95 9E 5F 90 81 8F 6F 4C 00 制服_吹出L
6. 079D8932 43 48 52 5F 96 BE 93 FA 95 E0 5F 8A EC 5F 83 81 CHR_明日歩_喜_メ 079D8942 83 43 83 68 95 9E 4C 00 イド服L
7. 079D8550 43 48 52 5F 96 B2 5F 97 63 8F AD 00 CHR_夢_幼少
So seventh one is match and then it starts looking for different things without failure:
str1 079EA017 43 48 52 5F 90 E1 8D D8 5F 8A EC 5F 93 7E 90 A7 CHR_雪菜_喜_冬制 079EA027 95 9E 4C 5F 95 5C 8F EE 00 服L_表情
str 2 0018FC18 43 48 52 5F 96 B2 5F 97 63 8F AD 5F 95 5C 8F EE CHR_夢_幼少_表情