*BSD News Article 90882


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.edu.au!news.apana.org.au!cantor.edge.net.au!news.teragen.com.au!news.access.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.Hawaii.Edu!ames!enews.sgi.com!news.corp.sgi.com!news.sgi.com!news-peer.gsl.net!news.gsl.net!hammer.uoregon.edu!zephyr.texoma.net!uunet!in3.uu.net!202.232.2.100!np1.iij.ad.jp!nf0.iij.ad.jp!nr0.iij.ad.jp!news.iij.ad.jp!news.CET.CO.JP!usenet
From: Michael Hancock <michaelh@cet.co.jp>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2-byte cursor movement in vi in EUC locales?
Date: Wed, 12 Mar 1997 08:12:00 -0800
Organization: CET
Lines: 27
Message-ID: <3326D5D0.63C7@cet.co.jp>
References: <5g36md$tvi$1@snunews.snu.ac.kr>
NNTP-Posting-Host: chaos.cet.co.jp
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.0b2 (WinNT; I)
X-Priority: 3 (Normal)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36929

Choi Jun Ho wrote:

  Hello, FreeBSD people,

  In some of asian locale environment, EUC-KR and EUC-JP or such,
  I want to know whether 2-byte cursor movement is supported in vi or
  not.

  Just some example:
   # LANG=ko_KR vi (in 2.2-GAMMA)
   # LANG=ja_JP vi (in most env.)

  If I write some sentence and move cursor to edit this, it moves
  only 1-byte boundary, not 2-byte boundary of our char.

  Is 2-byte cursor movement(I think it is up to vi for understanding
  EUC locales and supporting this) supported in vi in EUC locale
  environment? or not, someone tell me what is problem and whether
  someone tried to do so or not...

Look in ports for jelvis.  Nvi doesn't support 2-byte characters.

Regards,

Mike Hancock