* net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of

"<STDIN>".  This is binary safe.
This commit is contained in:
Michael Albinus 2012-11-27 15:55:25 +01:00
parent 369f945d0b
commit c2f5b60af5
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2012-11-27 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of
"<STDIN>". This is binary safe.
2012-11-27 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/table.el (table-insert): Don't use `symbol-name' on

View file

@ -813,14 +813,11 @@ my %%trans = do {
map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)}
split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);
};
binmode(\\*STDIN);
my $data;
# We read in chunks of 54 bytes, to generate output lines
# of 72 chars (plus end of line)
$/ = \\54;
while (my $data = <STDIN>) {
while (read STDIN, $data, 54) {
my $pad = q();
# Only for the last chunk, and only if did not fill the last three-byte packet