From 4525bc59822acf0dfffa1edc64125c180d29e59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 7 Apr 2014 10:44:48 +0200 Subject: Support binary standard_input in ssh_io --- lib/ssh/src/ssh_io.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ssh/src/ssh_io.erl') diff --git a/lib/ssh/src/ssh_io.erl b/lib/ssh/src/ssh_io.erl index 832b144db9..35336bce8b 100644 --- a/lib/ssh/src/ssh_io.erl +++ b/lib/ssh/src/ssh_io.erl @@ -81,6 +81,8 @@ format(Fmt, Args) -> trim(Line) when is_list(Line) -> lists:reverse(trim1(lists:reverse(trim1(Line)))); +trim(Line) when is_binary(Line) -> + trim(unicode:characters_to_list(Line)); trim(Other) -> Other. trim1([$\s|Cs]) -> trim(Cs); -- cgit v1.2.3