<BR><BR><BR>
<DIV id=addMailSign><SPAN></SPAN></DIV>
<DIV id=mailcontent><BR>
<BLOCKQUOTE id=ori dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; FONT: 9pt 宋体; MARGIN-LEFT: 10px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px; font-size-adjust: none; font-stretch: normal">
<DIV style="FONT: 9pt 宋体; font-size-adjust: none; font-stretch: normal">----- 原文 ----- </DIV><BR><B>From:</B> <A mce_href="mailto:axel_xia@sohu.com" xhref="mailto:axel_xia@sohu.com">axel_xia@sohu.com</A> <BR><B>Subject:</B>Re: Wine very very slow in Chinese language of Linux<BR>
<P>
<P>Hi, Roderick / Dan<BR>Thank you for your email. Please be patient to read my email, hope that helps for closing this issue.</P>
<P>When I searched in <A href="http://www.google.cn/">www.google.cn</A> (google in Chinese) with "wine slow" (I use Chinese character for slow, google in English returned little valuable info with "wine slow" in English), found someone summaried several reasons why wine in Linux is so slow &amp; gave the solutions, I translated it to English as below:<BR>1). Reason:<BR>&nbsp;&nbsp;&nbsp;&nbsp; Wine uses traditional protocol for communication between client and server, and it seems that iptables is disabled in linux/wine.<BR>&nbsp;&nbsp;&nbsp; Action: <BR>&nbsp;&nbsp;&nbsp; execute command "iptables -I INPUT -s 127.0.0.1 -j ACCEPT"<BR>2). Reason:<BR>&nbsp;&nbsp;&nbsp;&nbsp; Locale problem, lots of Linux distrubitions use utf-8 for Chinese locale, and wine will firstly try to search/request the utf-8 font sets which do not exisit in ./wine/drive_c/windows/fonts. Then wine will request other font sets that suits other locale(language environment) one by one (image how many languages in the world).<BR>&nbsp;&nbsp;&nbsp; Action:<BR>&nbsp;&nbsp;&nbsp; Execute command "env LANG=en_US wine your_program" or "env LANG=zh_CN wine your_program", to tell wine which language locale you want to use. (zh_CN is the Chinese locale in Linux)<BR>3). Reason:<BR>&nbsp;&nbsp;&nbsp;&nbsp; GKB font sets, maybe it is a bug while wine is very slow to request GKB font sets. (GKB font sets are used to display simplified Chinese fonts and traditional Chinese fonts, but it is not the national standard in China. Simplified Chinese fonts are used in mainland China, and traditional Chinese fonts are used in Hongkong/Taiwan/...).<BR>&nbsp;&nbsp;&nbsp;&nbsp; Action 1: delete the comments about GKB in&nbsp; /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE<BR>&nbsp;&nbsp;&nbsp;&nbsp; Action 2: execute command "sed -i "s/^[^#]*GBK/\#Marked for GBK--- &amp;/g" /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE &gt;/dev/null" to let wine not continue to use/request GBK fonts.<BR>4). Reason: No fonts in ~/.wine/drive_c/windows/fonts (actually that is a null folder at the beginning, nothing to suit Chinese environment in wine)<BR>&nbsp;&nbsp;&nbsp; Action:<BR>&nbsp;&nbsp;&nbsp; Copy the font file simsun.ttc (the default Chinese font in Chinese version of $MS Windows system) from XP to ~/.wine/drive_c/windows/fonts, and then save the following contents as fonts.reg:<BR>[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]<BR>"Arial"="simsun"<BR>"Arial CE,238"="simsun"<BR>"Arial CYR,204"="simsun"<BR>"Arial Greek,161"="simsun"<BR>"Arial TUR,162"="simsun"<BR>"Courier New"="simsun"<BR>"Courier New CE,238"="simsun"<BR>"Courier New CYR,204"="simsun"<BR>"Courier New Greek,161"="simsun"<BR>"Courier New TUR,162"="simsun"<BR>"FixedSys"="simsun"<BR>"Helv"="simsun"<BR>"Helvetica"="simsun"<BR>"MS Sans Serif"="simsun"<BR>"MS Shell Dlg"="simsun"<BR>"MS Shell Dlg 2"="simsun"<BR>"System"="simsun"<BR>"Tahoma"="simsun"<BR>"Times"="simsun"<BR>"Times New Roman CE,238"="simsun"<BR>"Times New Roman CYR,204"="simsun"<BR>"Times New Roman Greek,161"="simsun"<BR>"Times New Roman TUR,162"="simsun"<BR>"Tms Rmn"="simsun"</P>
<P><BR>Then execute the command "regedit ~/.wine/fonts.reg", so wine can be very well displayed as in Windows Chinese environment and much faster than before.</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>Due to time limit &amp; not willing to be risky, I only tried the 4th solution in my Fedora 10, and it seems faster than before with acceptable speed but does not improve sharply. Dear Madam/Sir, could you please help investigate based on the clues I provided? I also believe that you absolutely know how many&nbsp;users in China are evaluating wine &amp;/ crossover office in Chinese environment of Fedora / Ubuntu / Suse /......,&nbsp;and by the way&nbsp;it is also very slow to install $MS office via crossover office under Chinese environment of my Fedora 10.</P>
<P>&nbsp;</P>
<P>Best regards!</P>
<P>Yours sincerely, Axel<BR></P>
<DIV><SPAN></SPAN></DIV>
<DIV id=mailcontent><BR>
<BLOCKQUOTE id=ori dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; FONT: 9pt 宋体; MARGIN-LEFT: 10px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px; font-size-adjust: none; font-stretch: normal">
<DIV style="FONT: 9pt 宋体; font-size-adjust: none; font-stretch: normal">----- 原文 ----- </DIV><BR><B>From:</B> <A mce_href="mailto:thunderbird2k@gmail.com" xhref="mailto:thunderbird2k@gmail.com">Roderick Colenbrander&lt;thunderbird2k@gmail.com&gt;</A> <BR><B>Subject:</B>Re: Wine very very slow in Chinese language of Linux<BR>
<P>I think the slowness can be related to the font code. For some reason<BR>(still have to investigate why) font rendering performance (at least<BR>on nvidia and ati) is 50x faster if you enable font smoothing. (set it<BR>to rgb or bgr, gray is not that much faster). Axel use winetricks to<BR>enable it.<BR><BR>Roderick<BR><BR>On Sat, Jul 11, 2009 at 8:18 PM, Dan Kegel&lt;dank@kegel.com&gt; wrote:<BR>&gt; Axel wrote:<BR>&gt;&gt; When using WINE in Chinese environment Linux, the WINE works very very slow even opening windows / clicking buttons....<BR>&gt;<BR>&gt; Does this happen with the latest wine (1.1.25)?<BR>&gt; If so, can you show us how to reproduce the problem on<BR>&gt; an ubuntu 9.04 system? &nbsp;Remember, most of us<BR>&gt; don't speak chinese, so you'll need to be very<BR>&gt; explicit with your instructions.<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Dan<BR>&gt;<BR>&gt;<BR>&gt;<BR></P></BLOCKQUOTE></DIV><BR>
<HR SIZE=1>
<BR>
<TABLE border=0>
<TBODY>
<TR>
<TD height=18><!--<a href="http://goto.sogou.com/200811/f0dcfbe84e4d72e3d349f23166bd3cff.php" target="_blank">11月名企热招职位</a>--><!--<a href="http://goto.mail.sohu.com/goto.php3?code=mailadt-ta1" target="_blank">亲爱的老师,我要谢谢您! </a>--><!--<a href="http://goto.mail.sohu.com/goto.php?code=xgou-jiaozhu" target="_blank">3天购物省10元,7天购物省100元</a>--><!--<a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/events/gzj/index.shtml?rcc_id=33ea059aef6f6da076517d3fe4a5e074" target="_blank">古怪美女 妖孽?邻家mm?</a>--><!--<a href="http://my.51job.com/my/trace.php?adsnum=14050&ajp=aHR0cDovL3d3dy41MWpvYi5jb20v" target="_blank">上51job,轻松搞定好工作!</a>--><!--<a href="http://doc.go.sohu.com/200805/2688c1caac7fa59b755127cc9de8117b.php" target=_blank>送你08年最惹火的礼物(多图)</a>--><!--<a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/events/djz/index.shtml?rcc_id=80be48a8c926fdd3f0c109657e053bb7" target="_blank">12月18日《天龙八部》上演新版“大决战”</a>--><!--<a href="http://goto.mail.sohu.com/goto.php?code=08xmas_jiaozhu" target="_blank">快乐圣诞,闪电邮周周有大礼</a>--><A href="http://goto.mail.sohu.com/goto.php?code=ecard_jiaozhu" target=_blank>寻找童趣 好游戏让你停不下来</A> </TD></TR><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php3?code=mailadt-ta" target="_blank">搜狐闪电邮奥运特别版,登录有无限惊喜</a>--><!--<tr><td height=18><a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/?rcc_id=39301ddf7a8b8ac30517413e5d8787da" target="_blank">网游玩家必看>>>>08年绝对不能错过的好游戏!</a>--><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php3?code=jifen-jiaozhu" target="_blank">搜狐闪邮积分 金秋大兑奖!</a>--><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=jifen-jiaozhu" target="_blank">中奖这么简单?就是注册、登录?</a>--><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=08xmas_jiaozhu" target="_blank">快乐圣诞,闪电邮周周有大礼</a>--><!--<tr><td height=18><a href="http://goto.sogou.com/200812/dbce21df51553e96a498cbce53a5dcc3.php" target=_blank>乐友超值购物满300减30,100多款礼品任您选</a>--><!--<tr><td height=18><a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/events/djz/xn5.shtml?rcc_id=d5537740382dec41c14afb6276386ce6" target="_blank">山寨春晚幕后花絮揭秘</a>--><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=2009qrj-zhujiao" target=_blank>情人节,每天一束红玫瑰免费放送</a>--><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=09chunji_d1zhujiao" target=_blank>春季特卖场,最低三折起</a>--><!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=zhujiao_ecard" target=_blank>我所见过的劳动节最美的礼物!</a>-->
<TR>
<TD height=18><A href="http://goto.mail.sohu.com/goto.php?code=090601jifen" target=_blank>抽奖换礼,好运有你!</A> </TD></TR>
<TR>
<TD height=18></TD></TR></TBODY></TABLE>
<P></P></BLOCKQUOTE></DIV><br><hr size="1"><br> <style type="text/css">
<!--
a {font-size:12px;color:black}
a:hover {font-size:12px;text-decoration:underline}
.b{font-family:Arial; font-size:80%; margin-bottom:2px;color:#0000CC}
.pp{font-family:Arial;font-size:10px}
-->
</style>
<table border=0>
<tr><td height=18>
<!--<a href="http://goto.sogou.com/200811/f0dcfbe84e4d72e3d349f23166bd3cff.php" target="_blank">11月名企热招职位</a>-->
<!--<a href="http://goto.mail.sohu.com/goto.php3?code=mailadt-ta1" target="_blank">亲爱的老师,我要谢谢您! </a>-->
<!--<a href="http://goto.mail.sohu.com/goto.php?code=xgou-jiaozhu" target="_blank">3天购物省10元,7天购物省100元</a>-->
<!--<a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/events/gzj/index.shtml?rcc_id=33ea059aef6f6da076517d3fe4a5e074" target="_blank">古怪美女 妖孽?邻家mm?</a>-->

<!--<a href="http://my.51job.com/my/trace.php?adsnum=14050&ajp=aHR0cDovL3d3dy41MWpvYi5jb20v" target="_blank">上51job,轻松搞定好工作!</a>-->
<!--<a href="http://doc.go.sohu.com/200805/2688c1caac7fa59b755127cc9de8117b.php"  target=_blank>送你08年最惹火的礼物(多图)</a>-->
<!--<a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/events/djz/index.shtml?rcc_id=80be48a8c926fdd3f0c109657e053bb7" target="_blank">12月18日《天龙八部》上演新版“大决战”</a>-->
<!--<a href="http://goto.mail.sohu.com/goto.php?code=08xmas_jiaozhu" target="_blank">快乐圣诞,闪电邮周周有大礼</a>-->
<a href="http://goto.mail.sohu.com/goto.php?code=ecard_jiaozhu" target="_blank">寻找童趣 好游戏让你停不下来</a>
</td></tr>
<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php3?code=mailadt-ta" target="_blank">搜狐闪电邮奥运特别版,登录有无限惊喜</a>-->
<!--<tr><td height=18><a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/?rcc_id=39301ddf7a8b8ac30517413e5d8787da" target="_blank">网游玩家必看>>>>08年绝对不能错过的好游戏!</a>-->
<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php3?code=jifen-jiaozhu" target="_blank">搜狐闪邮积分   金秋大兑奖!</a>-->
<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=jifen-jiaozhu" target="_blank">中奖这么简单?就是注册、登录?</a>-->

<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=08xmas_jiaozhu" target="_blank">快乐圣诞,闪电邮周周有大礼</a>-->
<!--<tr><td height=18><a href="http://goto.sogou.com/200812/dbce21df51553e96a498cbce53a5dcc3.php"  target=_blank>乐友超值购物满300减30,100多款礼品任您选</a>-->
<!--<tr><td height=18><a href="http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=qiwei&ad=0018235?http://tl.sohu.com/events/djz/xn5.shtml?rcc_id=d5537740382dec41c14afb6276386ce6" target="_blank">山寨春晚幕后花絮揭秘</a>-->
<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=2009qrj-zhujiao" target=_blank>情人节,每天一束红玫瑰免费放送</a>-->
<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=09chunji_d1zhujiao" target=_blank>春季特卖场,最低三折起</a>-->
<!--<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=zhujiao_ecard" target=_blank>我所见过的劳动节最美的礼物!</a>-->
<tr><td height=18><a href="http://goto.mail.sohu.com/goto.php?code=090601jifen"  target=_blank>抽奖换礼,好运有你!</a>

<tr><td height=18>
</td></tr>
</table>