From owner-freebsd-questions Mon Oct 15 5:58:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from moutvdom00.kundenserver.de (moutvdom00.kundenserver.de [195.20.224.149]) by hub.freebsd.org (Postfix) with ESMTP id DBA5B37B407 for ; Mon, 15 Oct 2001 05:58:34 -0700 (PDT) Received: from [195.20.224.209] (helo=mrvdom02.schlund.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 15t7K5-0004yM-00; Mon, 15 Oct 2001 14:58:25 +0200 Received: from pd90172d3.dip.t-dialin.net ([217.1.114.211]) by mrvdom02.schlund.de with esmtp (Exim 2.12 #2) id 15t7Gu-0006xi-00; Mon, 15 Oct 2001 14:55:08 +0200 Date: Mon, 15 Oct 2001 12:54:13 +0000 (GMT) From: "P. U. (Uli) Kruppa" X-X-Sender: To: Giorgos Keramidas Cc: Theodore Hope , Subject: Re: how to get "vi" to echo accented vowels, etc. In-Reply-To: <20011015145825.A79161@hades.hell.gr> Message-ID: <20011015124654.Q287-100000@big> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Mon, 15 Oct 2001, Giorgos Keramidas wrote: > 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 I tried to do this for German: # setenv LANG de_DE # setenv LC_ALL=de_DE.ISO_8859-1 vi then will print strange symbols instead of \xe7 when I start it with # env vi file but not the letters I would like to use. Are you sure there isn't some other secret behind that? > > 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 > ************************************ * P. U. Kruppa - Wuppertal * * Germany * * www.pukruppa.de www.2000d.de * ************************************ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message