From f5d59814ac23f45d55ff2afc57134d8e233bb9fb Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 1 Apr 1999 10:22:48 +0000 Subject: [PATCH] fix sign extension bug Submitted by: Nikolai Saoukh --- usr.bin/mklocale/lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/mklocale/lex.l b/usr.bin/mklocale/lex.l index 0e2f1a9833b..bd5923a5341 100644 --- a/usr.bin/mklocale/lex.l +++ b/usr.bin/mklocale/lex.l @@ -53,7 +53,7 @@ XDIGIT [0-9a-fA-F] W [\t\n\r ] %% -\'.\' { yylval.rune = yytext[1]; +\'.\' { yylval.rune = (unsigned char)yytext[1]; return(RUNE); } '\\a' { yylval.rune = '\a';