https://bugs.winehq.org/show_bug.cgi?id=51306
Bug ID: 51306 Summary: Wine-Mono doesn't show Japanese text (DllImport issue?). Product: Wine Version: 6.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mscoree Assignee: wine-bugs@winehq.org Reporter: sagawa.aki+winebugs@gmail.com Distribution: ---
Created attachment 70171 --> https://bugs.winehq.org/attachment.cgi?id=70171 source and executable.
I wrote and ran a short program attached with Wine 6.11 and Wine Mono 6.20. But, it didn't work as expected. The code calls kernel32's GetDateFormatA by DllImport feature. I guess Wine-Mono's DllImport doesn't handle Japanese ANSI code page well.
Steps to reproduce: 1. If your 'locale -a' doesn't show ja_JP.utf8, add Japanese locale support to your environment. 2. Run today.exe on Japanese locale with wine, i.e. LANG=ja_JP.UTF-8 wine today.exe
Expected result: Message window shows today's date text in Japanese, e.g. 2021年6月21日.
Actual result: Message window appears, but shows no message text.
Remarks: If we use CharSet.Unicode instead, it works properly.