From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 23 13:38:25 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 2D0CB106566B for ; Wed, 23 Mar 2011 13:38:25 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 8E48D8FC0C for ; Wed, 23 Mar 2011 13:38:24 +0000 (UTC) Received: (qmail invoked by alias); 23 Mar 2011 13:38:22 -0000 Received: from f055109075.adsl.alicedsl.de (EHLO mandree.no-ip.org) [78.55.109.75] by mail.gmx.net (mp064) with SMTP; 23 Mar 2011 14:38:22 +0100 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX18hgzNJhaQhy5cZhx5ZLqVBXGl5XMsADiO0uPpD4I oHx721O/ZwBjSP Received: from apollo.emma.line.org (apollo.emma.line.org [192.168.0.4]) by merlin.emma.line.org (Postfix) with ESMTP id C330294630 for ; Wed, 23 Mar 2011 14:38:20 +0100 (CET) Received: from [IPv6:::1] (unknown [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id 8E74A25AD87 for ; Wed, 23 Mar 2011 14:38:20 +0100 (CET) Message-ID: <4D89F7CC.1020405@gmx.de> Date: Wed, 23 Mar 2011 14:38:20 +0100 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Mnenhy/0.8.3 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20110323091356.GA9549@lexx.ifp.tuwien.ac.at> In-Reply-To: <20110323091356.GA9549@lexx.ifp.tuwien.ac.at> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 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 13:38:25 -0000 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. vim works for me, supports Unicode, and for "fewer dependencies", we have vim-lite.