From owner-freebsd-questions Mon Oct 15 11:25:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from iguana.internexo.co.cr (iguana.internexo.co.cr [196.40.17.2]) by hub.freebsd.org (Postfix) with ESMTP id C6B2D37B403 for ; Mon, 15 Oct 2001 11:25:36 -0700 (PDT) Received: (from freebsd@localhost) by iguana.internexo.co.cr (8.9.3/8.9.3) id MAA26885; Mon, 15 Oct 2001 12:19:08 -0600 (CST) From: Theodore Hope Message-Id: <200110151819.MAA26885@iguana.internexo.co.cr> Subject: Re: how to get "vi" to echo accented vowels, etc. To: philip@paeps.cx (Philip Paeps) Date: Mon, 15 Oct 2001 12:19:08 -0600 (CST) Cc: root@pukruppa.de, charon@labs.gr, freebsd-questions@FreeBSD.ORG In-Reply-To: <01db01c1557a$0a5d9200$0200000a@paeps.cx> from "Philip Paeps" at Oct 15, 1 03:05:19 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 > > > > 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? > > I'm having trouble with this too. The funny thing is that it works in an > xterm, but not with cons25. I've learned to live with it over the years, but > if anyone has a secret trick to make my ISO-8859-1 characters work, I'll be so > happy I won't know what to do with myself :-) Yes, this only works in xterm, not on the console. I have never figured that out, but have lived with it that way (under BSDI) for years. -T. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message