summaryrefslogtreecommitdiffstats
path: root/usr.bin/mklocale
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-04-01 10:22:48 +0000
committerache <ache@FreeBSD.org>1999-04-01 10:22:48 +0000
commitc3edb55f8c28c9237cefdb5069a21ff3bea87e11 (patch)
tree2b7ab2ddb36f8a988bf52534ed0fa3826a6eeb57 /usr.bin/mklocale
parent6b90e271b59e953957f4fd97da1f43d903242b7a (diff)
downloadFreeBSD-src-c3edb55f8c28c9237cefdb5069a21ff3bea87e11.zip
FreeBSD-src-c3edb55f8c28c9237cefdb5069a21ff3bea87e11.tar.gz
fix sign extension bug
Submitted by: Nikolai Saoukh <nms@ethereal.ru>
Diffstat (limited to 'usr.bin/mklocale')
-rw-r--r--usr.bin/mklocale/lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mklocale/lex.l b/usr.bin/mklocale/lex.l
index 0e2f1a9..bd5923a 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';
OpenPOWER on IntegriCloud