https://bugs.winehq.org/show_bug.cgi?id=50676
Bug ID: 50676 Summary: Unicode characters do not display in Dialog boxes Product: Wine Version: 6.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: lunarlambda@gmail.com Distribution: ---
Created attachment 69392 --> https://bugs.winehq.org/attachment.cgi?id=69392 Screenshot of how the dialog looks in Wine
I have a program which uses the CreateDialog macro to create a dialog from a template specified in a resource script.
The resource file uses japanese text, and while both menus and window titles display correctly, dialog elements do not, simply replacing all japanese characters with '?'.
A screenshot of how the dialog looks on Windows 10 with the system language set to English: https://cdn.discordapp.com/attachments/698182658890399794/811269580831719445...
The program uses the -A APIs, and has a manifest setting the default code page to UTF-8, as described here: https://docs.microsoft.com/en-us/windows/uwp/design/globalizing/use-utf8-cod...
I also tried recompiling the program to use CreateDialogW instead, but it made no difference.
https://bugs.winehq.org/show_bug.cgi?id=50676
--- Comment #1 from lunarlambda@gmail.com --- Created attachment 69473 --> https://bugs.winehq.org/attachment.cgi?id=69473 dialog in wine with LANG=ja_JP.utf8
https://bugs.winehq.org/show_bug.cgi?id=50676
--- Comment #2 from lunarlambda@gmail.com --- I found that running with LANG=ja_JP.utf8 made everything display correctly.
I'm not sure why this is necessary though, there should be no difference in text encoding between any two *.utf8 locales, right?
Does Wine only ever use CJK fonts if a CJK locale is used? I would greatly appreciate some insight.
https://bugs.winehq.org/show_bug.cgi?id=50676
--- Comment #3 from lunarlambda@gmail.com --- I also found that this seems to be specific to dialogs and strings created in a resource script.
I wrote a simple program that calls MessageBoxA with some UTF-8 encoded japanese text, where the text turned out garbled even when running in ja_JP.utf8. Only using wide strings and MessageBoxW could I actually get the string to display correctly.