From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 23 15:06:42 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 6523B106566B for ; Wed, 23 Mar 2011 15:06:42 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 195A08FC14 for ; Wed, 23 Mar 2011 15:06:41 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 076005AC6B; Wed, 23 Mar 2011 16:06:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id F3EF15AC5C; Wed, 23 Mar 2011 16:06:40 +0100 (CET) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id CF59D5CC5C; Wed, 23 Mar 2011 16:06:40 +0100 (CET) Received: from lexx.ifp.tuwien.ac.at ([128.131.127.223]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.2FP1) with ESMTP id 2011032316063980-25753 ; Wed, 23 Mar 2011 16:06:39 +0100 Date: Wed, 23 Mar 2011 16:06:39 +0100 From: Alexey Shuvaev To: Matthias Andree Message-ID: <20110323150639.GA14558@lexx.ifp.tuwien.ac.at> References: <20110323091356.GA9549@lexx.ifp.tuwien.ac.at> <4D89F7CC.1020405@gmx.de> MIME-Version: 1.0 In-Reply-To: <4D89F7CC.1020405@gmx.de> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.2FP1|November 29, 2010) at 03/23/2011 04:06:39 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.2FP1|November 29, 2010) at 03/23/2011 04:06:40 PM, Serialize complete at 03/23/2011 04:06:40 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: freebsd-hackers@freebsd.org Subject: Re: [GSoC] About the idea: Unicode support in vi 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: Wed, 23 Mar 2011 15:06:42 -0000 On Wed, Mar 23, 2011 at 02:38:20PM +0100, Matthias Andree wrote: > Am 23.03.2011 10:13, schrieb Alexey Shuvaev: > > On Wed, Mar 23, 2011 at 12:39:44AM -0500, Zhihao Yuan wrote: > >> Hi, > >> > >> I'm a Computer Science student at Northern Illinois University, and I > >> used FreeBSD for a long time. I'm interested in the idea that to > >> improve the nvi in the base system. My proposal is slightly different: > >> I want to fork nvi and make it iconv-awared (or mbyte-mode tunable, > >> like tcsh), so that it can deal with more encodings. Can that be a > >> GSoC project proposal? > >> > > +1 here! > > > > ports/editors/nvi-devel is another starting point here. As far as I understand > > it is a further development of nvi which is in base. What I don't like > > about it is a dependency on databases/db3 and changed (worse, in my opinion) > > handling of keystrokes in 'insert' mode. But it is iconv-aware implementation > > already. > > nvi-devel is bit-rotten. Most releases date from 2004, and there was a > patchlevel-release in 2007 apparently, since then it's been left to bit rot. > > I'm thinking about just killing databases/db3 and see what happens with > nvi-devel. I tried convincing it to work with db41, and while it > compiles, it somehow abuses Berkeley DB in a way I don't see during > debugging and barfs with "Invalid argument" on a DB->open call on a > recovery file. > > Also, the documentation says it depends on 3.1, but then we've been > using 3.3 for ages, but even the first release of nvi-devel to use > Berkeley DB was released when 4.2 was already out. There seems to be > some code to make it work (which in itself is buggy it uses broken > comparisons for its version checks), but it doesn't work for reasons I > don't see with gdb. Berkeley DB doesn't like the way it's being used > and errors out with EINVAL. However, I don't care enough to build a > debug-enabled version of Berkeley DB to see where abandoned nvi-devel > might abuse bdb. > Yes, nvi-devel is not developed any more, but I was saying that nvi in base is even older than nvi-devel, and it is worth looking at it. At least for the iconv support. As for the BDB, maybe strip it just out, if possible? > vim works for me, supports Unicode, and for "fewer dependencies", we > have vim-lite. >