Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2011 15:06:00 -0500
From:      Zhihao Yuan <lichray@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [nvi-iconv]Call for test
Message-ID:  <CAGsORuCsz_XzWntZ_y40SuAS%2B7saT7GzMUoTzpGgdCN5aTYuNg@mail.gmail.com>
In-Reply-To: <CAGsORuBr=b-cJEAJO7cJ=j5dn04kJfR%2BHzz58Rjc29uTDZv4Xg@mail.gmail.com>
References:  <CAGsORuCWioKEF_n-2UK1BkRLCDkk-qbkhqYUZzLm16Em=NHEDg@mail.gmail.com> <CAGsORuBr=b-cJEAJO7cJ=j5dn04kJfR%2BHzz58Rjc29uTDZv4Xg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--90e6ba613ad6ec8f9404aa7cac91
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Sun, Aug 14, 2011 at 10:39 AM, Zhihao Yuan <lichray@gmail.com> wrote:
> Hi, hackers:
>
> My GSoC2011 project, "Multibyte Encoding Support in Nvi" is ready for
> testing. The proposal of the project is here:
> http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/zy/1
>
> The project creates a multibyte fork of the BSD-licensed nvi editor.
> It adds only 1 dependence, libiconv, =C2=A0to nvi-1.79, which presents in
> our base system currently. And the libiconv is included in -current's
> libc.
>
> The patch and the instruction of using the patch is at
> https://github.com/lichray/nvi2/wiki . Note that your -current box
> needs to be built WITH_ICONV=3D1 to include libiconv in libc. And such a
> knob enables iconv support in the new nvi at the same time.
>
> The patch will create contrib/nvi2, and it will not remove the unused
> contrib/nvi (patch(1) can not really remove files anyway).
>
> So for the next week, the feature set of the new nvi is frozen. I'll
> just wait for your testing reports and fix possible bugs. Thank you
> for giving me the opportunity to participate in GSoC.
>
> --
> Zhihao Yuan, nickname lichray
> The best way to predict the future is to invent it.
> ___________________________________________________
> 4BSD -- http://4bsd.biz/
>

Let me try to ``quickly'' explain how to involve into the testing.

First, download the patch from
https://github.com/downloads/lichray/nvi2/nvi2-freebsd-2011-08-14.diff.gz

If you want to test the new nvi with the libiconv in libc, you need a
-current src tree and a -current base system built WITH_ICONV=3D1.

If you want to test it with the libiconv in ports (evil, testing
only), you need either a -current or -stable src tree, and the port
converters/libiconv installed under /usr/local. You also need to apply
the additional patch included in the attachment *after* you applied
the nvi2-freebsd patch to your src tree.

After the src tree is patched, cd to usr.bin/vi under the src tree,

make WITH_ICONV=3D1

Now you can run the new nvi with ./nvi . If you want to replace the
system vi with this one, make WITH_ICONV=3D1 install

*NOTE*

FreeBSD's libncursesw only recognizes a subset of the locales which
are supported by libc. Which means, not all libc locales work. For
example, LC_CTYPE=3Dzh_CN.GBK won't work; use zh_CN.eucCN instead.
Fortunately, UTF-8 locales work, whenever your X terminal enumerator
supports it.

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

--90e6ba613ad6ec8f9404aa7cac91
Content-Type: application/octet-stream; name="nvi2-stable-Makefile.patch"
Content-Disposition: attachment; filename="nvi2-stable-Makefile.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_grcfjpud0

SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIE1ha2VmaWxlCShyZXZpc2lvbiAyMjUxMTEp
CisrKyBNYWtlZmlsZQkod29ya2luZyBjb3B5KQpAQCAtNDEsMTEgKzQxLDExIEBACiAuUEFUSDoJ
JHtTUkNESVJ9L2NsCiAuUEFUSDoJJHtTUkNESVJ9L3ZpCiAKLUNGTEFHUys9LUkkey5DVVJESVJ9
IC1JJHtTUkNESVJ9IC1JJHtTUkNESVJ9L2luY2x1ZGUKK0NGTEFHUys9LUkkey5DVVJESVJ9IC1J
JHtTUkNESVJ9IC1JJHtTUkNESVJ9L2luY2x1ZGUgLUkvdXNyL2xvY2FsL2luY2x1ZGUKIAogLmlm
ZGVmIChXSVRIX0lDT05WKQogRFBBREQ9CQkke0xJQk5DVVJTRVNXfQotTERBREQ9CQktbG5jdXJz
ZXN3CitMREFERD0JCS1sbmN1cnNlc3cgLWxpY29udiAtTC91c3IvbG9jYWwvbGliCiAuZWxzZQog
RFBBREQ9CQkke0xJQk5DVVJTRVN9CiBMREFERD0JCS1sbmN1cnNlcwo=
--90e6ba613ad6ec8f9404aa7cac91--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGsORuCsz_XzWntZ_y40SuAS%2B7saT7GzMUoTzpGgdCN5aTYuNg>