Skip to content

Commit

Permalink
Update nvi-1.79 to 2.1.1-4334a8297f
Browse files Browse the repository at this point in the history
This is the gsoc-2011 project to clean up and backport multibyte support
from other nvi forks in a form we can use.

USE_WIDECHAR is on unless building for the rescue crunchgen. This should
allow editing in the native locale encoding.

USE_ICONV depends on make.conf having 'WITH_ICONV=YES' for now.  This
adds the ability to do things like edit a KOI8-R file while having $LANG
set to (say) en_US.UTF-8.  iconv is used to transcode the characters for
display.

Other points:
* It uses gencat and catopen/etc instead of homegrown msg catalog stuff.
* A lot of stuff has been trimmed out, eg: the perl and tcl bindings which
  we could never use in base anyway.
* It uses ncursesw when in widechar mode.  This could be interesting.

GSoC info: http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/zy/1
Repo at: https://github.com/lichray/nvi2

Obtained from:  Zhihao Yuan <[email protected]>
  • Loading branch information
DarkHelmet433 committed Aug 11, 2013
1 parent 324feba commit 5f2a1d6
Show file tree
Hide file tree
Showing 269 changed files with 13,000 additions and 30,408 deletions.
3 changes: 2 additions & 1 deletion Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,8 @@ build-tools: .MAKE
usr.bin/awk \
lib/libmagic \
usr.bin/mkesdb_static \
usr.bin/mkcsmapper_static
usr.bin/mkcsmapper_static \
usr.bin/vi/catalog
${_+_}@${ECHODIR} "===> ${_tool} (obj,build-tools)"; \
cd ${.CURDIR}/${_tool} && \
${MAKE} DIRPRFX=${_tool}/ obj && \
Expand Down
160 changes: 0 additions & 160 deletions contrib/nvi/FAQ

This file was deleted.

128 changes: 0 additions & 128 deletions contrib/nvi/LAYOUT

This file was deleted.

25 changes: 13 additions & 12 deletions contrib/nvi/LICENSE
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
The vi program is freely redistributable. You are welcome to copy, modify
and share it with others under the conditions listed in this file. If any
company (not any individual!) finds vi sufficiently useful that you would
have purchased it, or if any company wishes to redistribute it, contributions
to the authors would be appreciated.

/*-
* $Id: LICENSE,v 8.18 2011/07/10 11:58:35 zy Exp $
*/

The following are the copyrights and redistribution conditions that apply
to this copy of the Vi software.

/*
* Copyright (c) 1991, 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
* Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996
* Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
* Keith Bostic. All rights reserved.
* Copyright (c) 1999, 2000
* Sven Verdoolaege. All rights reserved.
* Copyright (c) 2011
* Zhihao Yuan. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand All @@ -18,11 +23,7 @@ to the authors would be appreciated.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
Expand Down
Loading

0 comments on commit 5f2a1d6

Please sign in to comment.