aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-05-22 10:40:57 +0200
committerMarcus Arendt <[email protected]>2014-05-22 10:40:57 +0200
commitfcd95cafef819a0950c315e32d9f5fcba7ebf0fb (patch)
tree17404e1ee702f778fc5b7cafbe11f9d2b787c2cd /lib/ssh
parent3cfd04c00e109c01f4b74cbef77e7debfef089b8 (diff)
parent97ec79ab4ab2e00de42e69534b0181eeccbadfc8 (diff)
downloadotp-fcd95cafef819a0950c315e32d9f5fcba7ebf0fb.tar.gz
otp-fcd95cafef819a0950c315e32d9f5fcba7ebf0fb.tar.bz2
otp-fcd95cafef819a0950c315e32d9f5fcba7ebf0fb.zip
Merge branch 'maint'
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_io.erl2
1 files changed, 2 insertions, 0 deletions
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);