mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 02:47:36 +00:00
* net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of
"<STDIN>". This is binary safe.
This commit is contained in:
parent
369f945d0b
commit
c2f5b60af5
2 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue