From 88da7804c4aa610cd47454c6fe1409ea34212bd9 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 4 Dec 2002 02:07:00 +0000 Subject: [PATCH] Improve the bad character error message. --- lexor.lex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexor.lex b/lexor.lex index 4bd81d4e3..ca78b73f5 100644 --- a/lexor.lex +++ b/lexor.lex @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: lexor.lex,v 1.73 2002/06/06 18:57:18 steve Exp $" +#ident "$Id: lexor.lex,v 1.74 2002/12/04 02:07:00 steve Exp $" #endif # include "config.h" @@ -375,7 +375,7 @@ W [ \t\b\f\r]+ if (isgraph(yytext[0])) cerr << yytext[0]; else - cerr << (unsigned)yytext[0]; + cerr << "hex " << hex << (0xffU & ((unsigned) (yytext[0]))); cerr << ")" << endl; }