Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2011 23:17:16 -0500
From:      Zhihao Yuan <lichray@gmail.com>
To:        Test Rat <ttsestt@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: [nvi-iconv]Call for test
Message-ID:  <CAGsORuAqu0fyHAq9Tc1%2ByF2C_X=iG4QjYosXJUFthtJFO%2BSH5w@mail.gmail.com>
In-Reply-To: <CAGsORuD53dBXmRi3LQMAsrVy4FL11L6r9ZX2NONptWeDZMaySQ@mail.gmail.com>
References:  <CAGsORuBr=b-cJEAJO7cJ=j5dn04kJfR%2BHzz58Rjc29uTDZv4Xg@mail.gmail.com> <CAGsORuCsz_XzWntZ_y40SuAS%2B7saT7GzMUoTzpGgdCN5aTYuNg@mail.gmail.com> <868vqt0xuc.fsf@gmail.com> <CAGsORuDiq%2BgsGyV1Da0mUKj0JBnam584S2z5VFVcKyKM1qsVdw@mail.gmail.com> <1313663436600-4711635.post@n5.nabble.com> <86hb5euofp.fsf@gmail.com> <CAGsORuBJsP6AuB_biHJ9wv55=qhkb%2BWRQLpMUBkgA_OXuXKCbA@mail.gmail.com> <20110823175133.GK18091@acme.spoerlein.net> <CAGsORuCNJwwj9stHqMKS=1y8hd7Zga=V1zQ0EsHJCdryy0B3gw@mail.gmail.com> <CAGsORuD53dBXmRi3LQMAsrVy4FL11L6r9ZX2NONptWeDZMaySQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I uploaded a revision,
https://github.com/downloads/lichray/nvi2/nvi2-freebsd-2011-10-28.diff.gz

** This patch works for cvs/svn/git, but you have to remove
usr.bin/vi/port.h by hand. **

In this version, I hacked the CJK part. Now all EUC-compatible encodings are
being regarded as GB18030. Note! This change only affects how the text are
being displayed. It has nothing to do with the actual encoding.

The benefits are:

1. GB18030 works with libncursesw, but some other CJK encodings may not;.
2. AFAIK, GB18030 (Unicode 4.1) covers all CJK charsets, so it's good for
mixed-lingual editing.

Affected LC_CTYPE in FreeBSD:

ko_KR.CP949, ko_KR.eucKR
ja_JP.eucJP
zh_CN.GB2312, zh_CN.GBK, zh_CN.eucCN

If you any locale above (especially for Japanese, Korean users), please help
me test whether the CJK text (in any kind of encodings) are being handled
correctly. Thanks.

-- 
Zhihao Yuan, nickname lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGsORuAqu0fyHAq9Tc1%2ByF2C_X=iG4QjYosXJUFthtJFO%2BSH5w>