From: Paul Eggert Date: Fri, 29 Nov 2002 09:03:16 +0000 (+0000) Subject: [a-f] -> [abcdef], so that we don't assume the C locale. X-Git-Tag: BISON-1_875~187 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6b0d38ab2c1839b38dc6a994223a432f07c3cff9?ds=inline [a-f] -> [abcdef], so that we don't assume the C locale. --- diff --git a/src/scan-gram.l b/src/scan-gram.l index 2ed043f0..6f044350 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -435,7 +435,7 @@ splice (\\[ \f\t\v]*\n)* obstack_1grow (&string_obstack, c); } - \\x[0-9a-fA-F]+ { + \\x[0-9abcdefABCDEF]+ { unsigned long c; errno = 0; c = strtoul (yytext + 2, 0, 16); @@ -460,7 +460,7 @@ splice (\\[ \f\t\v]*\n)* /* \\[\"\'?\\] would be shorter, but it confuses xgettext. */ \\("\""|"'"|"?"|"\\") obstack_1grow (&string_obstack, yytext[1]); - \\(u|U[0-9a-fA-F]{4})[0-9a-fA-F]{4} { + \\(u|U[0-9abcdefABCDEF]{4})[0-9abcdefABCDEF]{4} { int c = convert_ucn_to_byte (yytext); if (c < 0) {