* utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation

even when printing 8-bit characters.
This commit is contained in:
John Gilmore 1992-05-01 09:39:30 +00:00
parent ea1549b346
commit fcdb113e57
2 changed files with 16 additions and 1 deletions

View file

@ -815,7 +815,9 @@ printchar (c, stream, quoter)
int quoter;
{
if (c < 040 || (sevenbit_strings && c >= 0177)) {
if ( c < 0x20 || /* Low control chars */
(c >= 0x7F && c < 0xA0) || /* DEL, High controls */
(sevenbit_strings && c >= 0x80)) { /* high order bit set */
switch (c)
{
case '\n':