KDE2.1中文显示补丁
作者 : kerberos
========kdelibs-2.1-zh.patch================
diff -r kdelibs-2.1/kdecore/charsets.config kdelibs-2.1.patched/kdecore/charsets.config
20a21,22
> gbk-0=gbk
> gb2312.1980-0=gbk
155c157,158
< gbk=set-gbk,unicode,iso8859-1
---
> gbk=gbk-0,unicode,iso8859-1
> gb2312=gb2312.1980-0,unicode,iso8859-1
195a199
> gb2312=4
Only in kdelibs-2.1.patched/kdecore: charsets.config~
diff -r kdelibs-2.1/kdecore/kcharsets.cpp kdelibs-2.1.patched/kdecore/kcharsets.cpp
110c110
< \"gb2312.1980-0\",
---
> \"gbk-0\",
598a599
> return \"gbk-0\";
===========end======================
=========kdenetwork-knode-zh.patch========
diff -r kdenetwork-2.1/knode/knnntpclient.cpp kdenetwork-2.1.patched/knode/knnntpclient.cpp
117c117
< name = QString::fromUtf8(line);
---
> name = QString::fromLocal8Bit(line);
184c184
< name = QString::fromUtf8(line);
---
> name = QString::fromLocal8Bit(line);
248c248
< name = QString::fromUtf8(line);
---
> name = QString::fromLocal8Bit(line);
283c283
< if (!sendCommandWCheck(cmd+group->name.utf8(),215)) // 215 informations follows
---
> if (!sendCommandWCheck(cmd+group->name.local8Bit(),215)) // 215 informations follows
334c334
< cmd+=target->groupname().utf8();
---
> cmd+=target->groupname().local8Bit();
=================end======================
发布人:quanning 来自:Linuxfab