https://bugs.winehq.org/show_bug.cgi?id=47674
Bug ID: 47674 Summary: Changing current system locale for non-Unicode programs (Maktabah Shamela - arabic language not showing properly) Product: Wine Version: 1.8.6 Hardware: x86 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: svet6ma@gmail.com
Created attachment 65127 --> https://bugs.winehq.org/attachment.cgi?id=65127 normal
Greeting you.
Im using MacOS High Sierra. Second day.. I have installed Wine 1.8.6 (then tried 4.0.1)
I need this for executing program named Maktabah Shamela which is also in your appDB:
https://appdb.winehq.org/objectManager.php?sClass=application&iId=19409
APP Launched with NO Problems. BUT. It doesn't recognize arabic letters properly.
So you can look there in detailed informations about application (click 3.64) there are test results.
You can see Workarounds for application there: ______________________________
First of all, to get it display Arabic language properly, follow the instructions here : https://abuhirr.wordpress.com/2013/12/20/syamilah/
Notice that you may have to uncomment the line "ar_SA.UTF-8" in you /etc/locale.gen and to run "sudo locale-gen".)
Run "winetricks wsh57 vcrun6". _______________________________
So. These workarounds as I understand all for linux/ubuntu.
But I cant do it on my Mac. Generally this application has problem with unicode. In WINDOWS it requires changing current language for non-unicode programs to Arabic (Saudi Arabia). So that UTF-8 will read properly.
I have tried many ways to configure this.
winetricks - allfonts / corefonts; DOS > intl.cp configuration to ar-SA; registry> machine/system/currentcontrolset/control/nls/locale.. or codepage.. or USER/control panel/international/local..
tried to ad .ttf files manually;
changed safari/view/unicode/ to utf-8 and etc.. forget how much. Working about more than 10 hours. Nothing WORKS. I will add the proper view of app, and the one is in my Wine/MacOS.
Any ideas?
https://bugs.winehq.org/show_bug.cgi?id=47674
--- Comment #1 from Nijat Dadashov svet6ma@gmail.com --- Created attachment 65128 --> https://bugs.winehq.org/attachment.cgi?id=65128 unnormal
https://bugs.winehq.org/show_bug.cgi?id=47674
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- (a warning: might be a bit ranty)
TBH, this looks more like a user problem, than an actual wine bug.
AFAIU both the entry in appdb and the blog are pretty much saying that as long as you've got the proper fonts, only thing needed is setting LANG to ar_SA.utf8 (they set LC_ALL, but (on Linux) unless you've got some of the other LC_ vars set, that's not necessary (LC_ALL is simply the final override)).
Not sure how that translates to MacOS. AFAIK, it's Unix-based, so similar should work.
Given that the screenshot looks like it's full of classic mojibake, I'd say locale var isn't getting passed to wine. wine needs a proper locale set, so it can translate it to a relevant Windows codepage - without that current codepage <-> UTF16 conversions go wrong across API.
Try to run the app from the terminal while setting the locale - just make sure that locale is actually available.
https://bugs.winehq.org/show_bug.cgi?id=47674
--- Comment #3 from Ken Thomases ken@codeweavers.com --- The issue is that the Mac C libraries only have a fairly narrow selection of installed locales. In particular, it doesn't support Arabic locales. I don't know if it's possible to install third-party ones.
There's much wider support for locales in the higher-level libraries and frameworks, which is what most Mac software uses.
Because Wine uses the C library's locale functionality to query the locale, it's not understanding ar_SA.UTF-8 and falling back on the C locale (albeit with UTF-8 character encoding). Wine doesn't rely much on the C library's locale functionality other than detecting the system locale settings, though. So, if you configure it with the desired locale in other ways, things should work.
In particular, there's drive_c/windows/win.ini in the prefix and the registry settings under [HKEY_CURRENT_USER\Control Panel\International]. Try configuring those for Saudi Arabia/Arabic.