From owner-freebsd-current@FreeBSD.ORG Thu Aug 15 07:42:43 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7E17715D for ; Thu, 15 Aug 2013 07:42:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3EC6E2CE7 for ; Thu, 15 Aug 2013 07:42:43 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id z10so250357qcx.18 for ; Thu, 15 Aug 2013 00:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=1FCCO8+2XJcePeQg9wPZLQSjSg+MJ1y/EYRCzQguFKE=; b=eS2aRfbgklKGgZfS6boZKSC6XUQfk9/9FwPxR6dAPQ7I34E+WvOoutGgXNtzQQBCzh OM8O6kl0HcTjh6GDDNFHVM94+RBp+FhrqAsjomibfoOMoiOaufDzMVZynDEqMibjPWDq yELXz9BShMg3rdqK4GPOmK2KY/rloBbdYxTGIVBzcKCEEtrQiWO+OZQF6rfXFMqTy/oF 1m4i4fk7nM73YGlRuG3RC3T78x93wqwH5wWhk0sDnkixkM7GDWwqjr6PzvqwXwdZqgfc vG597ENhPAFr6ndOxm94JMmRoQa9DRxeDAjJ8/lJT/5PW4g3kQ0mWoG7/Lt5fZSaMeGY 8XhA== MIME-Version: 1.0 X-Received: by 10.49.127.179 with SMTP id nh19mr16290924qeb.1.1376552562321; Thu, 15 Aug 2013 00:42:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.128.70 with HTTP; Thu, 15 Aug 2013 00:42:42 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 Aug 2013 00:42:42 -0700 X-Google-Sender-Auth: QgYSGJ1pfgvBOtIhLHvSbtJ0Zlk Message-ID: Subject: Re: Fun with nvi From: Adrian Chadd To: Peter Wemm Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Aug 2013 07:42:43 -0000 Hm, do we disable building the base with ICONV support in -HEAD? I'd like to trim it out so I can slim down embedded builds. Thanks! -adrian On 10 August 2013 10:33, Peter Wemm wrote: > I've been tinkering with the nvi refresh from the GSoC in 2011, aka nvi2. > > https://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/zy/1 > https://github.com/lichray/nvi2 > > The goal was to update the multibyte handling in nvi-1.79 (the one we > have in our tree) in such a way we could import it. > > Anyway.. an early WIP: http://people.freebsd.org/~peter/nvi2.tgz > > peter@overcee[ 9:37AM]~/head/contrib/nvi/catalog-1643> echo $LANG > en_US.UTF-8 > peter@overcee[ 9:38AM]~/head/contrib/nvi/catalog-1644> vi -c 'set > fileencoding=GB2312' zh_CN.GB2312.base > > .. leads to fun things like: > http://people.freebsd.org/~peter/nvi2-transcoding.png > that's editing the file in GB2312 format, but converting to utf-8 on > the fly for my terminal. > > This is with the WITH_ICONV=yes in make.conf. nvi2 will build without > it but obviously won't be able to work with non-default encoding > methods. > > In straight up UTF-8 mode: > http://people.freebsd.org/~peter/nvi2-utf8-4.png > > How to use the tarball.. > 1) rm -rf contrib/nvi usr.bin/vi > 2) extract tarball into src tree > 3) patch -p0 < nvi.diff (this adds a built-tool to world) > > Note that I haven't actually done a buildworld yet. I've just been > building it directly from src/usr.bin/vi with > make obj && make depend && make all && make install > .. to save time. > > But you'll need to have WITH_ICONV=yes in make.conf to do the fancy > stuff. Note that the ports tree is a long way from being > WITH_ICONV=yes safe, so don't do this on an important machine. An > example of the tweaks to make ports happier: > http://people.freebsd.org/~peter/iconv.diff - that's not complete. > Most of the ports tree was updated to use Mk/Uses/iconv.mk but there's > still some oddballs scattered around in weird places. > > -- > Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; > KI6FJV > UTF-8: for when a ' just won\342\200\231t do. > ZFS must be the bacon of file systems. "everything's better > with ZFS" > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >