Date: Fri, 01 Mar 1996 13:07:54 +0100 From: Peter Olsson <pol@leissner.se> To: questions@freefall.freebsd.org Cc: stephan@forthdv.pfm-mainz.de Subject: Re: 8bit clean vi? Message-ID: <2.2.32.19960301120754.00742a30@lda>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2.2.32.19960301120754.00742a30>