Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2000 21:39:24 +0900 (KST)
From:      cjh@wdb.co.kr
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17127: Ports fix: editors/vim5
Message-ID:  <200003021239.VAA01160@kfug.kr.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         17127
>Category:       ports
>Synopsis:       Ports fix: editors/vim5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar  2 04:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     CHOI Junho
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Web Data Bank Co.
>Environment:

FreeBSD gradius.myhome 3.4-STABLE FreeBSD 3.4-STABLE #0: Thu Mar  2
01:17:54 GMT 2000     root@gradius.myhome:/usr/src/sys/compile/GRADIUS
i386

>Description:

This is a suggestion/fix for editors/vim5 port.
After vim 5.x, multibyte enabling feature is depending on LANG variable
and success of setlocale(). If vim binary doesn't link with -lxpg4,
multibyte locale such as ko_KR.EUC or ja_JP.EUC doesn't affect vim5
so multibyte enabling(editing) feature still can't be used although
vim5 is compiled with --enable-multibyte.

>How-To-Repeat:

Edit some multilingual(e.g. Korean) text using current vim5.

env LANG=ko_KR.EUC vim korean-test.txt

Test with move cursors in the text. the cursor moves by byte, not 
character position.

Rebuild vim5 with this patch, do the same thing. Now the cursor
moves by character.

If this patch is adopted, korean/vim ports can be removed.

>Fix:
	
diff -uNr /usr/ports/editors/vim5/Makefile ./Makefile
--- /usr/ports/editors/vim5/Makefile	Wed Mar  1 10:10:05 2000
+++ ./Makefile	Thu Mar  2 21:20:43 2000
@@ -39,7 +39,7 @@
 DIST_SUBDIR=	vim
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
 PATCH_DIST_ARGS=	-d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_DIST_STRIP}
-MAKE_FLAGS=	CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib" -f
+MAKE_FLAGS=	LIBS="-lxpg4" CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib" -f
 ALL_TARGET=	#
 PLIST_SUB=	VIM_VER=${DISTNAME:S/-//:S/.//}
 MAN1=		vim.1 vimtutor.1 xxd.1 ectags.1

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003021239.VAA01160>