From 7f0fdd51607cf808b91adfad6407891d109d4ac4 Mon Sep 17 00:00:00 2001 From: Daniel Drown Date: Tue, 17 Jul 2012 10:12:18 -0500 Subject: [PATCH] Issue #300: Setting PERL_UNICODE breaks everything Mark all file descriptors involved in raw ssh traffic as binary/raw --- scripts/mosh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/mosh b/scripts/mosh index 6741f7c..75d9051 100755 --- a/scripts/mosh +++ b/scripts/mosh @@ -140,6 +140,9 @@ if ( defined $fake_proxy ) { PeerPort => $port, Proto => "tcp" ) or die "$0: connect to host $ip port $port: $!\n"; + binmode($sock); + binmode(STDIN); + binmode(STDOUT); sub cat { my ( $from, $to ) = @_;