mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
f0957ccae4
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 <lichray@gmail.com>
30 lines
520 B
C
30 lines
520 B
C
/* $Id: pathnames.h.in,v 8.7 2012/04/23 08:34:52 zy Exp $ */
|
|
/* $FreeBSD$ */
|
|
|
|
/* Read standard system paths first. */
|
|
#include <paths.h>
|
|
|
|
#ifndef _PATH_EXRC
|
|
#define _PATH_EXRC ".exrc"
|
|
#endif
|
|
|
|
#ifndef _PATH_MSGCAT
|
|
#define _PATH_MSGCAT "/usr/share/vi/catalog/"
|
|
#endif
|
|
|
|
#ifndef _PATH_NEXRC
|
|
#define _PATH_NEXRC ".nexrc"
|
|
#endif
|
|
|
|
#ifndef _PATH_PRESERVE
|
|
#define _PATH_PRESERVE "/var/tmp/vi.recover/"
|
|
#endif
|
|
|
|
#ifndef _PATH_SYSEXRC
|
|
#define _PATH_SYSEXRC "/etc/vi.exrc"
|
|
#endif
|
|
|
|
#ifndef _PATH_TAGS
|
|
#define _PATH_TAGS "tags"
|
|
#endif
|