[转]关于wine正确显示中文的小结

经过个人反反复复使用和设置wine后(从1.0开始到现在的1.1.2),有时候乱码有时候正常显示;以下对wine的中文显示做个不成熟的小结,希望对那些还在为中文乱码头疼的朋友有用。

前提:
1) wine 支持unicode,这点毋庸置疑;
2) 基于simsun中文字体;(其他字体没试过,但我想应该一样的)
3) locale为zh_CN.UTF-8的系统;
3) 针对wine 1.0及其以后版本。

设置中文,两步而已:
第一步:
基于大家熟知的修改"注册表",即运行wine自带regedit注册表编辑器,添加(修改)位于
KEY_LOCAL_MACHINE\Software\Microsoft\Window NT\CurrentVersionFontSubstitutes的以下键值:
"MS Shell Dlg"="Simsun";
"MS Shell Dlg 2"="Simsun";
[关键之一]并添加(一般需要手动添加,中文乱码为方块的原因正是此)
"Tahoma"="Simsun";

第二步:
[关键之二]拷贝simsun.ttf(ttc)到$HOME/.wine/drive_c/windows/Fonts目录
这一步主要是基于wine只认它自己的“系统”和目录,比如引用:wine: could not load L"C:\windows\system32\XXXX-setup.exe": Module not found
之类的错误原因就在于此,字体也不例外。

以上两步做后,中文显示一般应该都没问题了,举个例子:包括Count-strike的中文界面和服务器列表的中文以及游戏中的中文。

其实都是大家平时的方法,只是可能大家没有都做完整,结果有时乱码,有时正常。
大家还有什么问题,欢迎讨论。

from http://forum.ubuntu.org.cn/viewtopic.php?p=857647


UBUNTU 9.04更新源

关键包含 网易 163 的更新源

------------------

1.sudo gedit /etc/apt/sources.list
编辑你的源列表,添加下面列表中你觉得适合你的,复制到你的列表中,然后保存列表。

Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):

deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

网易163更新服务器:

deb http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jaunty-backports main restricted universe multiverse

Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):

deb http://cn.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse

Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器,推荐):

deb http://mirror.lupaworld.com/ubuntu jaunty main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu jaunty-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu jaunty-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu jaunty-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu jaunty-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu jaunty main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu jaunty-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu jaunty-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu jaunty-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu jaunty-proposed main restricted universe multiverse

厦门大学更新服务器(教育网服务器):

deb jaunty main restricted universe multiverse
deb jaunty-backports restricted universe multiverse
deb jaunty-proposed main restricted universe multiverse
deb jaunty-security main restricted universe multiverse
deb jaunty-updates main restricted universe multiverse
deb-src jaunty main restricted universe multiverse
deb-src jaunty-backports main restricted universe multiverse
deb-src jaunty-proposed main restricted universe multiverse
deb-src jaunty-security main restricted universe multiverse
deb-src jaunty-updates main restricted universe multiverse

成都市 电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):

deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe

== 如果无法解析uestc.edu.cn域名,请使用以下地址 ==

deb http://ubuntu.dormforce.net/ubuntu/ jaunty main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-updates main multiverse restricted universe

上海市上海交通大学更新服务器(教育网,推荐校园网和网通用户使用):

deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe

中国科学技术大学更新服务器(教育网,推荐校园网和网通用户使用):

deb http://debian.ustc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe

中国Tai w Tai w大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main restricted universe multiverse

mirror.rootguide.org更新服务器(上海市 电信):

deb http://mirror.rootguide.org/ubuntu/ jaunty main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ jaunty main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ jaunty-backports main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ jaunty-security main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://mirror.rootguide.org/ubuntu/ jaunty-proposed main restricted universe multiverse

Tai w的官方源速度也相当不错,有时甚至快于内地的:

deb http://tw.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse

安全更新:
#deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
#deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
#deb http://security.ubuntu.com/ubuntu jaunty-security universe
#deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
#deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
#deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse

2.sudo apt-get update 更新源列表信息
请至少保存官方更新源。