Patch to fix Bug 1462: zh-CN copy&paste problem


Subject: Patch to fix Bug 1462: zh-CN copy&paste problem
From: Anthony Fok (anthony@thizlinux.com)
Date: Thu Jan 17 2002 - 05:42:08 CST


Hello all,

This patch (for AbiWord-0.99.1 or the latest CVS) fixes the copy-and-paste
problem for zh_CN locale. Previously, simplified Chinese characters were
pasted as "?". (See Bug 1462)

I guess the problem was that entries like zh_CN.BIG5 and zh_TW.GB2312
confused AbiWord to choose the wrong codepage for zh_CN.
Previously, CP950 was invoked during a copy-and-paste, but CP950 is for
zh_TW; zh_CN uses CP936, or the equivalent of GBK. (GB2312 is ancient).
The locale entries are now corrected, and a few ones added too.
This should take care of the problems with Bug 1462. After applying this
patch, you can go ahead and close the bug.

The next step is to extend full support for BIG5-HKSCS and GB18030, but
as I currently do not know how Windows handles these encodings, this will
be a future project. AFAIK, CP950 only covers BIG5, and CP950 only covers
GBK. Does Microsoft use new codepages, or ignore codepages altogether and
use straight Unicode? Not sure. :-) Anyhow, this will be a wishlist item.

Cheers,

Anthony

-- 
Anthony Fok Tung-Ling
ThizLinux Laboratory   <anthony@thizlinux.com> http://www.thizlinux.com/
Debian Chinese Project <foka@debian.org>       http://www.debian.org/intl/zh/
Come visit Our Lady of Victory Camp!           http://www.olvc.ab.ca/




This archive was generated by hypermail 2b25 : Thu Jan 17 2002 - 05:34:47 CST