Just 8 bits out

John Robert LoVerso loverso at xenna.Encore.COM
Tue Oct 25 06:41:37 AEST 1988


In article <17 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
> In 4.3BSD you can turn on PASS8 which will give you 8-bit character
> input.  However, you still can't get 8-bit output without turning other
> output processing off.
> 
> ...Setting PASS8 in SunOS 4.0 gives you 8 bits in both directions.

Unfortunately, 4.3BSD (and SunOS up to 3.5) has a bug in the implementation
of PASS8.  Cooked input liternal next processing `quotes' a character
by setting the 8th bit.  Thus, by turning on PASS8 and then inputing
something innocuous like ^Vx, a read will really return 'x'|0200.  This
makes PASS8 somewhat useless for input of multi-lingual character sets,
not to mention making the csh/sh barf (they expect 7 bits only).

This isn't fixed in 4.3BSD-Tahoe.  It is SunOS4.0.

John Robert LoVerso, Encore Computer Corp
encore!loverso, loverso at Encore.COM



More information about the Comp.unix.wizards mailing list