aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_bits.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-01-17 15:57:21 +0100
committerHans Nilsson <[email protected]>2014-01-21 16:36:38 +0100
commitf4c9b4a4dddcf1f577df3f4bf58f2f7184cae6b0 (patch)
treed69a0f448f831ac73ba08d09dbfdaacbb4d99a0c /lib/ssh/src/ssh_bits.erl
parentf836096cb383c6a3c5c91956ded5bd4e2772bcd2 (diff)
downloadotp-f4c9b4a4dddcf1f577df3f4bf58f2f7184cae6b0.tar.gz
otp-f4c9b4a4dddcf1f577df3f4bf58f2f7184cae6b0.tar.bz2
otp-f4c9b4a4dddcf1f577df3f4bf58f2f7184cae6b0.zip
ssh: Adds unicode
Diffstat (limited to 'lib/ssh/src/ssh_bits.erl')
-rw-r--r--lib/ssh/src/ssh_bits.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_bits.erl b/lib/ssh/src/ssh_bits.erl
index 2b0241cb83..8aaff93b9f 100644
--- a/lib/ssh/src/ssh_bits.erl
+++ b/lib/ssh/src/ssh_bits.erl
@@ -116,6 +116,10 @@ enc(Xs, [string|Ts], Offset) ->
X0 = hd(Xs),
Y = ?string(X0),
[Y | enc(tl(Xs),Ts,Offset+size(Y))];
+enc(Xs, [string_utf8|Ts], Offset) ->
+ X0 = hd(Xs),
+ Y = ?string_utf8(X0),
+ [Y | enc(tl(Xs),Ts,Offset+size(Y))];
enc(Xs, [binary|Ts], Offset) ->
X0 = hd(Xs),
Y = ?binary(X0),