diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 79028d68f73..618b407fbea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-11-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of | ||
| 4 | "<STDIN>". This is binary safe. | ||
| 5 | |||
| 1 | 2012-11-27 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-11-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * textmodes/table.el (table-insert): Don't use `symbol-name' on | 8 | * textmodes/table.el (table-insert): Don't use `symbol-name' on |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 07da0b3dc16..340b7ad353d 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -813,14 +813,11 @@ my %%trans = do { | |||
| 813 | map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)} | 813 | map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)} |
| 814 | split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/); | 814 | split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/); |
| 815 | }; | 815 | }; |
| 816 | 816 | my $data; | |
| 817 | binmode(\\*STDIN); | ||
| 818 | 817 | ||
| 819 | # We read in chunks of 54 bytes, to generate output lines | 818 | # We read in chunks of 54 bytes, to generate output lines |
| 820 | # of 72 chars (plus end of line) | 819 | # of 72 chars (plus end of line) |
| 821 | $/ = \\54; | 820 | while (read STDIN, $data, 54) { |
| 822 | |||
| 823 | while (my $data = <STDIN>) { | ||
| 824 | my $pad = q(); | 821 | my $pad = q(); |
| 825 | 822 | ||
| 826 | # Only for the last chunk, and only if did not fill the last three-byte packet | 823 | # Only for the last chunk, and only if did not fill the last three-byte packet |