Fox Weiqi Not Showing Chinese (or CJK) Characters

Questions about Wine on Linux
Locked
psygo
Level 2
Level 2
Posts: 20
Joined: Tue Aug 30, 2022 8:24 am

Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by psygo »

I'm able to run the Fox Weiqi client (the foreign version) perfectly with Wine: https://www.foxwq.com/soft/foreign.html

https://imgur.com/a/U2P9XNL

And I do have CJK fonts installed on my Arch desktop, they do show up on other programs properly.

Is Wine not able to access these characters by default?

It's also happening on my Mac (Sonoma).
psygo
Level 2
Level 2
Posts: 20
Joined: Tue Aug 30, 2022 8:24 am

Re: Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by psygo »

I've been trying more things here: https://unix.stackexchange.com/q/784811/364698
psygo
Level 2
Level 2
Posts: 20
Joined: Tue Aug 30, 2022 8:24 am

Re: Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by psygo »

I'm hosting a bounty over this on that Stack Exchange.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by jkfloris »

Does the program work if you run it like this:

Create a clean Wineprefix

Code: Select all

WINEPREFIX=~/foxweiqi wineboot
Install the necessary fonts

Code: Select all

WINEPREFIX=~/foxweiqi winetricks -q tahoma fakechinese
Install the program

Code: Select all

WINEPREFIX=~/foxweiqi wine install.exe
Run the program with a Chinese locale

Code: Select all

cd "${HOME}/foxweiqi/drive_c/Program Files (x86)/foxwq/foxwq"
LC_ALL=zh_CN.utf8 WINEPREFIX=~/foxweiqi wine foxwq.exe
psygo
Level 2
Level 2
Posts: 20
Joined: Tue Aug 30, 2022 8:24 am

Re: Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by psygo »

That's super dope! It works!

I actually didn't want to run the program with a Chinese locale, only for the fonts to appear properly, so I took out `LC_ALL=zh_CN.utf8`. It's strange that Chinese characters do show up properly but there's still probably some missing fonts (https://imgur.com/a/ga4ZYOr), maybe I'll need to reinstall Korean an Japanese fonts as well, since they might be used there too.

Do you know how I could add Fox Weiqi back to Rofi then? I was using this to add it: https://unix.stackexchange.com/q/784800/364698 . But now, since your solution is more than one command, I don't know how to fix the syntax.

If you're interested, this is pretty much the answer to my bounty on the Unix Stack Exchange, and it's gonna expire really soon, so maybe just plop something there, and you can edit it later, if need be, if you're interested in the points that is.
psygo
Level 2
Level 2
Posts: 20
Joined: Tue Aug 30, 2022 8:24 am

Re: Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by psygo »

Ok, I just created a script for those 2 lines, and then used in the `.desktop` file, this way it runs things through Rofi.
psygo
Level 2
Level 2
Posts: 20
Joined: Tue Aug 30, 2022 8:24 am

Re: Fox Weiqi Not Showing Chinese (or CJK) Characters

Post by psygo »

I tried the same procedure on my Mac OS Sonoma M2, and it didn't work unfortunately:

Code: Select all

007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
2024-10-31 09:34:49.665 wine-preloader[92890:291388] +[IMKClient subclass]: chose IMKClient_Modern
0024:err:environ:init_peb starting L"Z:\\Applications\\Fox Install.exe" in experimental wow64 mode
0024:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
0024:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0024:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0024:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
Locked