From owner-freebsd-questions Sat Mar 2 00:33:31 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA19519 for questions-outgoing; Sat, 2 Mar 1996 00:33:31 -0800 (PST) Received: from gate.leissner.se (gate.leissner.se [193.45.192.34]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA19503 for ; Sat, 2 Mar 1996 00:33:00 -0800 (PST) Received: from leissner.se (nuucp@localhost) by gate.leissner.se (8.6.9/8.6.9) with UUCP id JAA06455 for freefall.freebsd.org!questions; Sat, 2 Mar 1996 09:27:04 +0100 Received: from lda.leissner.se by lda.leissner.se id aa13977; 1 Mar 96 13:07 SNT Message-Id: <2.2.32.19960301120754.00742a30@lda> X-Sender: pol@lda X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 01 Mar 1996 13:07:54 +0100 To: questions@freefall.freebsd.org From: Peter Olsson Subject: Re: 8bit clean vi? Cc: stephan@forthdv.pfm-mainz.de Sender: owner-questions@FreeBSD.ORG Precedence: bulk stephan@forthdv.pfm-mainz.de wrote: >how do I manage to get the iso8859-1 characters displayed while working >with vi. All I get is the hex-representation of the characters which >looks not that nice.... I had the same problem and made a quick fix. It is quite possibly a bad thing to do, but it works for me, so I don't care :) In the vi-source, subdirectory common, file term.c: Change the line (283 in the source I have, nvi 1.34) if (isprint(ch)) { to if (isprint(ch) || ch > '\177') { and compile a new binary. The problem is that isprint() in freebsd only cares about the first 128 characters, which is insufficient when you live for example in Sweden. I didn't feel like checking all characters above 127, so I just allowed them all out of pure laziness and lack of time. Use this hack if you dare, I take no responsibility whatsoever if this gives you any trouble. Peter Olsson pol@leissner.se