aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/v3_kernel_pp.erl
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2017-05-04 07:57:45 +0200
committerJosé Valim <[email protected]>2017-05-08 10:46:59 +0200
commit3393e2249d0987ec25eefbacb7b24c061fd7a64e (patch)
treef180b013f3f8475ceed953b6d34635e870428f14 /lib/compiler/src/v3_kernel_pp.erl
parent95e22b101b73087630fd58ae2487a91fcf004334 (diff)
downloadotp-3393e2249d0987ec25eefbacb7b24c061fd7a64e.tar.gz
otp-3393e2249d0987ec25eefbacb7b24c061fd7a64e.tar.bz2
otp-3393e2249d0987ec25eefbacb7b24c061fd7a64e.zip
Add a test for utf8 function names
The test found a bug in v3_kernel_pp which was not taking into account utf8 atoms. The bug has also been fixed.
Diffstat (limited to 'lib/compiler/src/v3_kernel_pp.erl')
-rw-r--r--lib/compiler/src/v3_kernel_pp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/v3_kernel_pp.erl b/lib/compiler/src/v3_kernel_pp.erl
index 187e69a22c..716280a95c 100644
--- a/lib/compiler/src/v3_kernel_pp.erl
+++ b/lib/compiler/src/v3_kernel_pp.erl
@@ -145,7 +145,7 @@ format_1(#k_local{name=N,arity=A}, Ctxt) ->
"local " ++ format_fa_pair({N,A}, Ctxt);
format_1(#k_remote{mod=M,name=N,arity=A}, _Ctxt) ->
%% This is for our internal translator.
- io_lib:format("remote ~s:~s/~w", [format(M),format(N),A]);
+ io_lib:format("remote ~ts:~ts/~w", [format(M),format(N),A]);
format_1(#k_internal{name=N,arity=A}, Ctxt) ->
"internal " ++ format_fa_pair({N,A}, Ctxt);
format_1(#k_seq{arg=A,body=B}, Ctxt) ->