aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/src/leex.erl
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2013-09-09 20:35:41 +0100
committerFredrik Gustafsson <[email protected]>2013-09-10 13:50:33 +0200
commitee55ee98e89fc2cf6bb6d7e4b596507c3b2d9ffb (patch)
tree09cb0099fbec5c5f6044ad723df2886ac8228064 /lib/parsetools/src/leex.erl
parent59c87f2df787beb5334c108da4c41e88245ad191 (diff)
downloadotp-ee55ee98e89fc2cf6bb6d7e4b596507c3b2d9ffb.tar.gz
otp-ee55ee98e89fc2cf6bb6d7e4b596507c3b2d9ffb.tar.bz2
otp-ee55ee98e89fc2cf6bb6d7e4b596507c3b2d9ffb.zip
Missed a few similar calls
Diffstat (limited to 'lib/parsetools/src/leex.erl')
-rw-r--r--lib/parsetools/src/leex.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsetools/src/leex.erl b/lib/parsetools/src/leex.erl
index 4544b34a1e..03f864ff03 100644
--- a/lib/parsetools/src/leex.erl
+++ b/lib/parsetools/src/leex.erl
@@ -491,7 +491,7 @@ parse_rules_end(_, NextLine, REAs, As, St) ->
collect_rule(Ifile, Chars, L0) ->
%% Erlang strings are 1 based, but re 0 :-(
- {match,[{St0,Len}|_]} = re:run(Chars, "[^ \t\r\n]+"),
+ {match,[{St0,Len}|_]} = re:run(Chars, "[^ \t\r\n]+", [unicode]),
St = St0 + 1,
%%io:fwrite("RE = ~p~n", [substr(Chars, St, Len)]),
case collect_action(Ifile, substr(Chars, St+Len), L0, []) of
@@ -548,7 +548,7 @@ var_used(Name, Toks) ->
%% here as it uses info in replace string (&).
parse_rule_regexp(RE0, [{M,Exp}|Ms], St) ->
- Split= re:split(RE0, "\\{" ++ M ++ "\\}", [{return,list}]),
+ Split= re:split(RE0, "\\{" ++ M ++ "\\}", [{return,list},unicode]),
RE1 = string:join(Split, Exp),
parse_rule_regexp(RE1, Ms, St);
parse_rule_regexp(RE, [], St) ->