aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ic
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2016-07-07 14:44:44 +0200
committerLars Thorsen <[email protected]>2016-09-07 14:03:05 +0200
commit504b99b3dff501f8b4acd1c153f758723e66c2e2 (patch)
tree8e297f7584e689f6c2e5005a51be53d711366f66 /lib/ic
parent68c748c3f7e75f8fa5e583e5cb979490258eb5f3 (diff)
downloadotp-504b99b3dff501f8b4acd1c153f758723e66c2e2.tar.gz
otp-504b99b3dff501f8b4acd1c153f758723e66c2e2.tar.bz2
otp-504b99b3dff501f8b4acd1c153f758723e66c2e2.zip
[ic] Fix but when UTF-8 character in path to idl spec
The path is only used when writing a comment so the correction just allowed UTF-8 characters in that io_lib:format call. IC don't support UTF-8 in the specs or their names (generated modules contains coding: latin-1) but the path is only used in a comment so it's not a problem if it can't be written correctly as long as nothing fails.
Diffstat (limited to 'lib/ic')
-rw-r--r--lib/ic/src/ic_codegen.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ic/src/ic_codegen.erl b/lib/ic/src/ic_codegen.erl
index adad021da1..a3f141f606 100644
--- a/lib/ic/src/ic_codegen.erl
+++ b/lib/ic/src/ic_codegen.erl
@@ -245,8 +245,8 @@ emit_stub_head(G, F1, Name, java) ->
stub_header(G, Name) ->
["Implementation stub file",
"",
- io_lib:format("Target: ~s", [Name]),
- io_lib:format("Source: ~s", [ic_genobj:idlfile(G)]),
+ io_lib:format("Target: ~ts", [Name]),
+ io_lib:format("Source: ~ts", [ic_genobj:idlfile(G)]),
io_lib:format("IC vsn: ~s", [?COMPILERVSN]),
"",
"This file is automatically generated. DO NOT EDIT IT."].
@@ -298,8 +298,8 @@ emit_hrl_head(G, Fd, Name, c_server) ->
hrl_header(G, Name) ->
["",
- io_lib:format("Target: ~s", [Name]),
- io_lib:format("Source: ~s", [ic_genobj:idlfile(G)]),
+ io_lib:format("Target: ~ts", [Name]),
+ io_lib:format("Source: ~ts", [ic_genobj:idlfile(G)]),
io_lib:format("IC vsn: ~s", [?COMPILERVSN]),
"",
"This file is automatically generated. DO NOT EDIT IT."].