diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-19 22:51:37 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-19 22:51:37 +0000 |
commit | 73ed594dacb9442b34fb3d08ed81911c25901863 (patch) | |
tree | 1c60e6efa6d71ac15eef7f094b7b77bbd54ae67d /main/ast_expr2.fl | |
parent | fec1153e822e14299f07afcec59f31f4344fc9ec (diff) |
This patch fixes a problem with 8-bit input to the ast_expr2 scanner.
The real culprit was the --full argument to flex
in the Makefile! This causes a 7-bit scanner to be
generated.
I reviewed the rules and found one rule where I needed
to specifically include 8-bit chars for a token.
I tested against the text supplied by ibercom, and
all looks very well.
This has been there a surprisingly long time!
(closes issue #14498)
Reported by: ibercom
Patches:
14498.patch uploaded by murf (license 17)
Tested by: murf
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@177540 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/ast_expr2.fl')
-rw-r--r-- | main/ast_expr2.fl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/ast_expr2.fl b/main/ast_expr2.fl index 67dd3aa6a..f503740e8 100644 --- a/main/ast_expr2.fl +++ b/main/ast_expr2.fl @@ -102,6 +102,8 @@ static char *expr2_token_subst(const char *mess); %option noyyfree %x var trail +HIBIT [\x80-\xff] + %% \| { SET_COLUMNS; SET_STRING; return TOK_OR;} @@ -150,7 +152,7 @@ static char *expr2_token_subst(const char *mess); return TOKEN; } -[a-zA-Z0-9,.';\\_^$#@]+ { +[a-zA-Z0-9,.';\\_^$#@{HIBIT}]+ { SET_COLUMNS; SET_STRING; return TOKEN; |