From owner-freebsd-current@FreeBSD.ORG Sun Aug 11 09:15:18 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id ADEAE885 for ; Sun, 11 Aug 2013 09:15:18 +0000 (UTC) (envelope-from peter@wemm.org) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [IPv6:2607:f8b0:400c:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6AEB12B19 for ; Sun, 11 Aug 2013 09:15:17 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id ox1so4895471veb.37 for ; Sun, 11 Aug 2013 02:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ai0QFDZjCWHmGk5PzWRXkDEDWrU8YsqsUY1oG+FC6mA=; b=LJfjMt83MjT+t16v0PCBMxKHuW0WkP+2oKXHl0tEtyUoXGAc7QqQeeU9SR4SumWBtE DFvT3GMkVy3v3SdgEOKeLIxl8ztdoM5WB1hMhF35pYtVmfVQEjaEVbEItu8jUNBjm26k EJGcBQEPIa1VLCJ2lGqBazbOyOALCbrT5bck8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ai0QFDZjCWHmGk5PzWRXkDEDWrU8YsqsUY1oG+FC6mA=; b=nCeRBTiD2gbzK7+KEgAHLUlhpAYDzbrnZESO5+PvRjuv86B8KiBiZrrmfEqUx0skcb MtG0zGkEwSjqzZERA45A/JM7Wbz9I45WpdN0sWZYFER3MiD//YL/dx4FGGl/n3DIodyX NnNDt+neUQCaJwPg5VfP/ObXMEj3NUKZZrFq7nb9e5rrhMNO2eGg7B91YyCEnwuFzHEb Zkj3G1ms5swnqbNQaVGFWMpFYzzMM8Xp4NvqBvsFXwMXYQF1jimoviV8xghgXyAC/D6u q3zMfL1CvfkqVXeIwIA4mepWCetanSEojCXooCE4gCgfjjXaLWzlTb+3UEh4k9xeE03u qAuA== X-Gm-Message-State: ALoCoQk4B01Arjnwk6R65xAqSNhe1JkNNGhzGCFWnHvcjrq+z94G7QoIcBRi1hqMHDsUCXa2hEu6 MIME-Version: 1.0 X-Received: by 10.52.30.18 with SMTP id o18mr3409217vdh.114.1376212515795; Sun, 11 Aug 2013 02:15:15 -0700 (PDT) Received: by 10.220.167.74 with HTTP; Sun, 11 Aug 2013 02:15:15 -0700 (PDT) In-Reply-To: <20130811083529.GA20632@FreeBSD.org> References: <20130811083529.GA20632@FreeBSD.org> Date: Sun, 11 Aug 2013 02:15:15 -0700 Message-ID: Subject: Re: Fun with nvi From: Peter Wemm To: Alexey Dokuchaev Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 11 Aug 2013 09:15:18 -0000 On Sun, Aug 11, 2013 at 1:35 AM, Alexey Dokuchaev wrote: > On Sat, Aug 10, 2013 at 10:33:20AM -0700, 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. > > Yes, please do something about our base(1) being unable to talk in anything > non-ASCII. I'm using editors/nvi-devel now, which was WIDECHAR option, and > was wondering why those changes were never imported into the base. > > How is nvi 1.81.6 (per editors/nvi-devel) is different from nvi2, btw? The original reason was that nvi-devel switched from the db-1.x API to db-3/db-4 which were sleepycat licensed, and are now Oracle. It was a big chunk of code at the time. eg: USE_BDB= 42+ CONFIGURE_ARGS+= --with-db-prefix=${LOCALBASE} nvi2 is nvi-1.79 from base with a serious cleanup pass. The iconv/multibyte code will look quite familiar if you've looked at the nvi-devel code, along with a cherry-picking of additions from nvi-m17n for better CJK/non-utf8 support. nvi2 does not have the same level of sophisticated encoding detection that nvi-m17n has. -- 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"