Subject: Re: fmt and high bit characters
To: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
From: David Brownlee <abs@netbsd.org>
List: tech-userlevel
Date: 09/28/2000 15:42:07
On Thu, 28 Sep 2000, Ignatios Souvatzis wrote:

> On Thu, Sep 28, 2000 at 02:12:28PM +0100, abs@purplei.com wrote:
> > 	Currently fmt strips any characters with high bits.
> > 	This makes is pretty much useless for formatting (or centering :)
> > 	european text with accented characters and suchlike. Its made
> > 	harder by the fact you may be exchanging email or working with
> > 	a file that has been sent by someone ina different locale.
> > 
> > 	Some options:
> > 	      - Apply attached patch to allows characters > 127.
> > 	      - Allow characters > 127 via option ('-8'?)
> > 	      - Do nothing.
> > 
> > 	What do people think?
> 
> - implement switchable CTYPEs.
> 
> e.g., >127 might be right for CP850, but is wrong for iso-8859-$N, at last
> for N==1.

	Will this help for the case when you are sharing files with
	someone from a different locale? - eg fix it for the current
	locale so isprint() does the right thing, but allow a '-8' overide
	(or similar) to allow all highbit characters through...
	
                David/absolute
			       -- www.netbsd.org: A pmap for every occasion --