http://bugs.winehq.org/show_bug.cgi?id=10063
Summary: wineconsole run fail on korean locale. Product: Wine Version: 0.9.47. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-programs AssignedTo: wine-bugs@winehq.org ReportedBy: dlunch@gmail.com
wineconsole failed to run in korean locale. it reports 'err:wineconsole:WCUSER_SetFont wrong font' few times and 'err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting'. but when i tried LANG="C" wineconsole cmd, it runs successfully.
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #1 from Austin English austinenglish@gmail.com 2008-04-15 01:44:32 --- Is this still an issue in current (0.9.59 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #2 from Inseok Lee dlunch@gmail.com 2008-05-03 03:57:03 --- In wine 0.9.60 in ubuntu hardy, problem exists.
http://bugs.winehq.org/show_bug.cgi?id=10063
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=10063
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #3 from Rosanne DiMesio dimesio@earthlink.net 2010-07-24 10:08:40 --- Is this still an issue in current (1.2 or later) Wine?
http://bugs.winehq.org/show_bug.cgi?id=10063
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from Austin English austinenglish@gmail.com 2010-07-26 01:43:28 --- austin@laptop:~$ LANG=ko_KR.UTF-8 wine wineconsole cmd err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting
Yep, still present. Confirming.
http://bugs.winehq.org/show_bug.cgi?id=10063
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
--- Comment #5 from fracting fracting@gmail.com 2011-05-17 07:09:11 CDT --- confirm this bug with wine1.3.20, LANG=zh_CN.utf8
This bug has effect on the installation of AliIM2011_taobao(6.50.27T).exe ,which can be download from http://www.taobao.com/wangwang/2010_fp/seller.php?tracelogww2010=sellerclick While installing, the console output is like below:
err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting
err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WCUSER_SetFont wrong font err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting
set LANG=en_US.utf8 will workaround on it, but that will break other things: after installing AliIM2011_taobao(6.50.27T).exe with LANG=en_US.utf8, the application's font will have a strange display.
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #6 from fracting fracting@gmail.com 2011-05-21 23:45:20 CDT --- Created an attachment (id=34836) --> (http://bugs.winehq.org/attachment.cgi?id=34836) Log: LANG=zh_CN.utf8 , +wineconsole,+font trace
$ LANG=zh_CN.utf8 WINEDEBUG=+wineconsole,+font wineconsole cmd
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #7 from Sagawa sagawa.aki+winebugs@gmail.com 2011-12-06 10:05:34 CST --- Created attachment 37827 --> http://bugs.winehq.org/attachment.cgi?id=37827 removes width validation in WCUSER_CopyFont
I made the patch which removes character width validation.
As far as I understood, the cause of this failure is WCUSER_CopyFont function. The function checks whether all characters in the font have fixed width. If a character in the font doesn't have a same width as the first character has, the font is be wrong. So some environments, especially DBCS environment, the procedure is failed. Finally it couldn't find a decent font.
But, in my opinion, this idea is not good now. I have two reasons as follows:
a. This routine is outdated. According to author's FIXME comment, the check was needed for FreeType < 2.0.8, but commit 570e68b82200 on October 10 updated the requirement, 2.1.4 or later. And just for reference, Ubuntu 11.10 shipped with 2.4.4.
b. It is not useful for DBCS fonts. Even in fixed-pitch font, such as MS Gothic, all characters are not same width. There are half-width characters (mainly ASCII characters) and full-width characters (mainly Kanji) in it.
http://bugs.winehq.org/show_bug.cgi?id=10063
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |30378
http://bugs.winehq.org/show_bug.cgi?id=10063
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|30378 |
http://bugs.winehq.org/show_bug.cgi?id=10063
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |30378
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #8 from Qian Hong fracting@gmail.com 2012-10-04 09:16:39 CDT --- Hi Sagawa, your patch works perfect for me, could you try to send it to wine-patch to see whether it is acceptable? This would solve lots application installers.
Thanks a lot!
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #9 from Qian Hong fracting@gmail.com 2012-10-15 11:33:57 CDT --- Sagawa, ping.
Regards :)
http://bugs.winehq.org/show_bug.cgi?id=10063
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=10063
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
http://bugs.winehq.org/show_bug.cgi?id=10063
Ma Xiaojun damage3025@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damage3025@gmail.com
--- Comment #10 from Ma Xiaojun damage3025@gmail.com 2013-06-12 09:26:27 CDT --- Still an issue in 1.4.1
http://bugs.winehq.org/show_bug.cgi?id=10063
Tho t.kani@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |t.kani@gmx.net
--- Comment #11 from Tho t.kani@gmx.net 2013-10-11 10:59:54 CDT --- The argumentation sounds reasonable.
Maybe we could use a directive to determinate the freetype version and fix this for freetype > 2.0.8
Im about to set up a dev env when i get access to bandwith somwhere and submit a patch.
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #12 from Sagawa sagawa.aki+winebugs@gmail.com 2013-10-15 10:05:59 CDT --- My patch (comment #7) is pending as commented in following mail: http://www.winehq.org/pipermail/wine-devel/2011-December/093534.html
In detail, my change breaks current wineconsole implementation. Because double-byte characters occupies two cells in the console window. To solve this issue, we need to improve wine's console output for double-byte characters, I think.
More technically, from my investigation, SBCS[1] console assigns one cell buffer for each characters including full-width characters internally. Wine follows this way. But, DBCS[2] console assigns one cell buffer for half-width characters and two cell buffers for full-width characters. This is hard work...
If you have a good idea or reason to resubmit this patch without above changes, please let me know.
[1] Single-byte character set. e.g. Codepage 437. [2] Double-byte character set. e.g. Chinese, Japanese, Korean.
http://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #13 from Tho t.kani@gmx.net 2013-10-15 13:21:38 CDT --- Thank you for clarifying this one - I dont think that i am able to handle this change.
http://bugs.winehq.org/show_bug.cgi?id=10063
lilydjwg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lilydjwg@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #14 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #15 from Qian Hong fracting@gmail.com --- (In reply to Ken Sharp from comment #14)
Is this still an issue in Wine 1.7.45 or later?
Yes, still present for Chinese and Korean locale.
https://bugs.winehq.org/show_bug.cgi?id=10063
Szopen Xiao hark110@163.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hark110@163.com
--- Comment #16 from Szopen Xiao hark110@163.com --- I think wineconsole do not support multi-byte font
https://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #17 from Qian Hong fracting@gmail.com --- After this commit 15f8b012239cd53d9e1a7bb2d1d01371f1cd3aa1 wineconsole doesn't fail for Chinese any more.
It doesn't look nice yet, also Chinese IME doesn't work, but I think those could be reported as separate bugs.
Is anyone able to test Korean locale?
https://bugs.winehq.org/show_bug.cgi?id=10063
Ma Hsiao-chun damage3025@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|damage3025@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #18 from Szopen Xiao hark110@163.com --- The bug is fixed in wine-1.7.55 (Staging)
https://bugs.winehq.org/show_bug.cgi?id=10063
--- Comment #19 from Jactry Zeng jactry92@gmail.com --- (In reply to Qian Hong from comment #17)
After this commit 15f8b012239cd53d9e1a7bb2d1d01371f1cd3aa1 wineconsole doesn't fail for Chinese any more.
It doesn't look nice yet, also Chinese IME doesn't work, but I think those could be reported as separate bugs.
Is anyone able to test Korean locale?
It still doesn't work on Mac with Chinese locale. $ locale LANG="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_CTYPE="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_ALL=
Maybe only specific Chinese font can let wineconsole work with Chinese locale after commit 15f8b012239cd53d9e1a7bb2d1d01371f1cd3aa1.
wine: wine-1.9.0-734-g30525a5 (Staging)
https://bugs.winehq.org/show_bug.cgi?id=10063
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e1fc8dcdee1fec9a67e5f10de7e | |d1a6952261ba7 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #20 from Jactry Zeng jactry92@gmail.com --- e1fc8dcdee1fec9a67e5f10de7ed1a6952261ba7 let wineconsole work on OS X with zh_CN.UTF-8 or ko_KR.UTF-8 locale now. I think it was fixed. Thanks Alexandre!
https://bugs.winehq.org/show_bug.cgi?id=10063
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #21 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.7.
https://bugs.winehq.org/show_bug.cgi?id=10063
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=10063
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #22 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.3.