Skip to content

Commit 92094c9

Browse files
committed
Write ascii printable charlists as such in .app file (#14906)
1 parent d4d5da2 commit 92094c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/mix/lib/mix/tasks/compile.app.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ defmodule Mix.Tasks.Compile.App do
214214
end
215215

216216
defp to_erl_term(list) when is_list(list) do
217-
[?[, to_erl_head(list), ?]]
217+
if List.ascii_printable?(list) do
218+
:io_lib.print(list)
219+
else
220+
[?[, to_erl_head(list), ?]]
221+
end
218222
end
219223

220224
defp to_erl_term(map) when is_map(map) do

0 commit comments

Comments
 (0)