From owner-freebsd-questions Mon Oct 15 5: 3: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 81C0937B412 for ; Mon, 15 Oct 2001 05:02:58 -0700 (PDT) Received: from hades.hell.gr (patr530-b070.otenet.gr [195.167.121.198]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f9FC2rv21686; Mon, 15 Oct 2001 15:02:53 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f9FBwQo82712; Mon, 15 Oct 2001 14:58:26 +0300 (EEST) (envelope-from charon@labs.gr) Date: Mon, 15 Oct 2001 14:58:25 +0300 From: Giorgos Keramidas To: Theodore Hope Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to get "vi" to echo accented vowels, etc. Message-ID: <20011015145825.A79161@hades.hell.gr> References: <200110141955.NAA11373@iguana.internexo.co.cr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200110141955.NAA11373@iguana.internexo.co.cr> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Theodore Hope wrote: > I'm trying to figure out how to enter accented vowels > and other non-ASCII-7 characters in "vi". > > In an xterm, I can run "cat" (read/write stdin/stdout) > and then type ALT-i to get the 'e' with an acute accent, > ALT-a to get the 'a' with an acute accent, etc. > > However, if I try to do that in "vi" each character is > echoed in hex, such as "\xe9" for ALT-i, "\xe1" for ALT-a, > etc. The characters _are_ input correctly, it's just > that "vi" doesn't echo them as single chars on the screen :-( > > In BSDI, this works (in "vi") if I have the "LC_CTYPE" > environment variable set to "ISO8859-1", but setting this > in FreeBSD doesn't change anything. I can work with Greek characters (which are 8-bit too) when I set in my environment LANG=el_GR LC_ALL=el_GR.ISO8859-7 Try setting these two to proper values for your locale. For instance, these would be set to LANG=fr_FR LC_ALL=fr_FR.ISO8859-1 for French with ISO-8859-1 accents. To see which languages/encodings are supported, look at the files of /usr/share/locale. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message