From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 14 20:06:02 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BB0B1065674 for ; Sun, 14 Aug 2011 20:06:02 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 65BA28FC08 for ; Sun, 14 Aug 2011 20:06:02 +0000 (UTC) Received: by iye7 with SMTP id 7so12112428iye.17 for ; Sun, 14 Aug 2011 13:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Wu5UrrR6C2zEDfNIJpvRFGk9nkqT613CUp7DV+MssfY=; b=G5JyRs815DzqUViCM6U1sW2CpoaC0CQvXvnyqqFAKma/9FBOBcENr2tf2gZ6xc1/O0 ecZT5I8AIrOa45iVkyiVJP/U2Eav8RZMRfXK7AJQtpnDOUoqe9jscbowjafjvrhTwbms nKBYodvcbCkrYExuGH5ieYkFZxehthGfv06v8= MIME-Version: 1.0 Received: by 10.42.150.196 with SMTP id b4mr3732989icw.153.1313352360693; Sun, 14 Aug 2011 13:06:00 -0700 (PDT) Received: by 10.231.30.73 with HTTP; Sun, 14 Aug 2011 13:06:00 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Aug 2011 15:06:00 -0500 Message-ID: From: Zhihao Yuan To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary=90e6ba613ad6ec8f9404aa7cac91 Subject: Re: [nvi-iconv]Call for test X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 20:06:02 -0000 --90e6ba613ad6ec8f9404aa7cac91 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Aug 14, 2011 at 10:39 AM, Zhihao Yuan 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--