Fix IllegalArgumentException caused by non-ascii user names

When connecting via command line ssh with a non-ascii user name set,
the info message is not displayed, but an IllegalArgumentException
("Not ASCII string") is thrown.  This change shows the message in
UTF-8.

Change-Id: I1c4da072a572b6a35bd020a00450ec7123c23ba9
This commit is contained in:
Georg Müller 2011-02-14 11:06:11 +01:00 committed by Shawn O. Pearce
parent eab5103ff2
commit 0860e1b13c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class NoShell implements Factory<Command> {
} finally {
SshScope.set(old);
}
err.write(Constants.encodeASCII(message.toString()));
err.write(Constants.encode(message.toString()));
err.flush();
in.close();