http://bugs.winehq.org/show_bug.cgi?id=28193
Summary: wineconsole does not support RTL locales Product: Wine Version: 1.3.26 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: fgouget@codeweavers.com
I am entering this bug on behalf of Yaron Shahrabani because I did not find any other bug describing this issue.
So the issue is that wineconsole does not support the RTL languages such as Hebrew and Arabic. To test this do the following: * xcopy is a tool that is Unicodified and properly accesses the console. So we are going to use it for testing.
* Make sure your system is configured with support for the Hebrew locale ('dpkg-reconfigure locales' on Debian).
* Hack po/he.po to add a Hebrew string with a trailing '.\n' for the xcopy usage message (it does not matter what it says).
* Recompile xcopy.
* First check that 'xcopy /?' shows the right string, very likely with the wrong orientation, in the terminal emulator: LANG=he_IL.utf8 ./wine programs/xcopy/xcopy.exe.so /?
If it still shows the English usage it may be because you are missing libgettextpo. Other display issues may be because you are missing the right fonts or because your terminal emulator is buggy (Gnome terminal >= 3.0.1 and xterm >= 271 should show the string at least). Remember that the Unix terminal emulators are known to have a buggy RTL implementation and thus will display the message with the wrong orientation.
* Then check that the right string shows up in wineconsole: LANG=he_IL.utf8 ./wine wineconsole cmd then type xcopy /?
In my test the line where the Hebrew string should appear is almost empty (I only see the '32' and trailing '.' that were part of the translated string).
It's possible there are two problems: * A font selection issue which could explain the 'invisible' characters. * An LTR vs. RTL issue: the '.' at the end of the PO string appears at the end of the wineconsole line which seems wrong since the same dot appears at the start of the line in a MessageBox().
The same test can be done with an Arabic locale by editing the po/ar.po file and setting LANG=ar_MA.utf8 for instance.
As a last data point, a similar test with the left-to-right Telugu locale (LANG=te_IN.utf8, po/te.po) gets me squares in the Gnome terminal (proving my system has a font issue for that locale), but also in wineconsole. So unlike for Hebrew I did not get 'invisible characters'.
http://bugs.winehq.org/show_bug.cgi?id=28193
Yaron Shahrabani sh.yaron@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sh.yaron@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28193
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
--- Comment #1 from fracting fracting@gmail.com 2011-08-26 09:28:27 CDT --- Hello, is this a dupplicate of Bug 10063 ?
http://bugs.winehq.org/show_bug.cgi?id=28193
Aric Stewart aric@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aric@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #2 from Aric Stewart aric@codeweavers.com 2011-08-26 10:43:17 CDT --- (In reply to comment #1)
Hello, is this a dupplicate of Bug 10063 ?
No exactly. The Font part my be similar but Korean is LTR and so the order of the characters are not an issue.
Hebrew and Arabic are RTL and so the string, in addition to having missing glyphs, are ordered incorrectly presently.
http://bugs.winehq.org/show_bug.cgi?id=28193
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other
http://bugs.winehq.org/show_bug.cgi?id=28193
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=28193
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Target Milestone|--- |1.4.0
http://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #3 from Yaron Shahrabani sh.yaron@gmail.com 2011-10-21 04:41:33 CDT --- I tried to type in Hebrew in wineconsole (wineconsole cmd) and got the Program Error message showing that the program wineconsole.exe has encountered... (I can only click OK).
Same thing happened when trying to list a folder with Hebrew names in it (Changed the file name back to English and it looks fine).
Same for Arabic.
Tried the same thing with random Bopomofo chars and got a thick vertical line, when I try to copy the lines I get the Bopomofo characters I originally entered.
I added 2 screenshots: The first screenshot I added is the list of files I actually have (Shown in Nautilus).
The second is the output of the "dir" command for the same directory.
http://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #4 from Yaron Shahrabani sh.yaron@gmail.com 2011-10-21 04:43:26 CDT --- Created attachment 37031 --> http://bugs.winehq.org/attachment.cgi?id=37031 The list of files I actually have in the directory
http://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #5 from Yaron Shahrabani sh.yaron@gmail.com 2011-10-21 04:44:15 CDT --- Created attachment 37032 --> http://bugs.winehq.org/attachment.cgi?id=37032 The output of the "dir" command for the same dir
There are some freaky chars at the bottom.
http://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #6 from Yaron Shahrabani sh.yaron@gmail.com 2011-10-21 04:45:02 CDT --- I forgot to add that my Wine version is 1.3.29
http://bugs.winehq.org/show_bug.cgi?id=28193
Hias zacherl1987@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zacherl1987@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=28193
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.4.0 |1.6.0
--- Comment #7 from Austin English austinenglish@gmail.com 2012-03-07 13:27:03 CST --- Moving milestone to 1.6.
http://bugs.winehq.org/show_bug.cgi?id=28193
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.6.0 |1.4.0
--- Comment #8 from Austin English austinenglish@gmail.com 2012-03-07 13:34:19 CST --- My mistake, 1.6 criteria are not set yet, so these need to stay in 1.4.
Sorry for the noise.
http://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #9 from Yaron Shahrabani sh.yaron@gmail.com 2012-03-07 15:05:24 CST --- Never mind, I talked to Paul Vriens right after I submitted the photos.
He told me it's a matter of adding the Hebrew glyphs to the fonts, does that sound like a reasonable solution or we can have a fallback font so this issue will be resolved in a much more elegant way?
Kind regards, Yaron Shahrabani.
https://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #10 from Ken Sharp imwellcushtymelike@gmail.com --- Still present.
https://bugs.winehq.org/show_bug.cgi?id=28193
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #11 from Alex Henrie alexhenrie24@gmail.com --- https://source.winehq.org/git/wine.git/commitdiff/15f8b012239cd53d9e1a7bb2d1... seems to have fixed this bug for Arabic and Hebrew. Are there still problems with other languages?
https://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #12 from François Gouget fgouget@codeweavers.com --- Created attachment 53109 --> https://bugs.winehq.org/attachment.cgi?id=53109 RTL display issue in wineconsole
The dot should not be at the end of the line.
https://bugs.winehq.org/show_bug.cgi?id=28193
--- Comment #13 from François Gouget fgouget@codeweavers.com --- Created attachment 53110 --> https://bugs.winehq.org/attachment.cgi?id=53110 Reference Hebrew MessageBox
I think a comparison of this reference MessageBox() screenshot with the wineconsole one proves that wineconsole still displays RTL strings incorrectly.
https://bugs.winehq.org/show_bug.cgi?id=28193
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #14 from winetest@luukku.com --- See this comment https://bugs.winehq.org/show_bug.cgi?id=39661#c8