aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/test/leex_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-09-29 08:27:39 +0200
committerHans Bolinder <[email protected]>2016-09-29 08:27:39 +0200
commit8bde09c998c68265361155aa8ed188aa0e2a4a44 (patch)
tree8452843d8d3f58a2086eb19978d5919ea53ebebf /lib/parsetools/test/leex_SUITE.erl
parentdabc6644991a6e732dc4404433215d1333a0ea07 (diff)
parentf738330c5588f5e2ad7e3661c675bbffb4795850 (diff)
downloadotp-8bde09c998c68265361155aa8ed188aa0e2a4a44.tar.gz
otp-8bde09c998c68265361155aa8ed188aa0e2a4a44.tar.bz2
otp-8bde09c998c68265361155aa8ed188aa0e2a4a44.zip
Merge branch 'hasse/parsetools/fix_leex_unicode/OTP-13919' into maint
* hasse/parsetools/fix_leex_unicode/OTP-13919: parsetools: Correct handling of Unicode in Leex
Diffstat (limited to 'lib/parsetools/test/leex_SUITE.erl')
-rw-r--r--lib/parsetools/test/leex_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/parsetools/test/leex_SUITE.erl b/lib/parsetools/test/leex_SUITE.erl
index 949ef3c36e..84f9c996ac 100644
--- a/lib/parsetools/test/leex_SUITE.erl
+++ b/lib/parsetools/test/leex_SUITE.erl
@@ -408,12 +408,12 @@ unicode(Config) when is_list(Config) ->
Ts = [{unicode_1,
<<"%% -*- coding: utf-8 -*-\n"
"Definitions.\n"
- "RTLarrow = (←)\n"
+ "RTLarrow = (←)\n"
"Rules.\n"
- "{RTLarrow} : {token,{'<-',TokenLine}}.\n"
+ "{RTLarrow} : {token,{\"←\",TokenLine}}.\n"
"Erlang code.\n"
"-export([t/0]).\n"
- "t() -> {ok, [{'<-', 1}], 1} = string(\"←\"), ok.">>,
+ "t() -> {ok, [{\"←\", 1}], 1} = string(\"←\"), ok.">>,
default,
ok}],
@@ -1137,7 +1137,7 @@ run_test(Config, Def, Pre) ->
XrlFile = filename:join(DataDir, DefFile),
ErlFile = filename:join(DataDir, Filename),
Opts = [return, warn_unused_vars,{outdir,DataDir}],
- ok = file:write_file(XrlFile, Def, [{encoding, unicode}]),
+ ok = file:write_file(XrlFile, Def),
LOpts = [return, {report, false} |
case Pre of
default ->