GNU bug report logs - #44320
[PATH] [27.1] Make sure send-string-to-terminal send all contents

Previous Next

Package: emacs;

Reported by: Lin Sun <lin.sun <at> zoom.us>

Date: Thu, 29 Oct 2020 23:03:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: LinSun <lin.sun <at> zoom.us>
Cc: Eli Zaretskii <eliz <at> gnu.org>, "44320 <at> debbugs.gnu.org" <44320 <at> debbugs.gnu.org>
Subject: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents
Date: Mon, 02 Nov 2020 16:22:20 +0100
LinSun <lin.sun <at> zoom.us> writes:

>> This is very old code, so it is surprising this only comes up now.
>>I'd rather we understood the issue completely before we decide how to
>>fix it.

[...]

> I had attached all the testing files, the testing.el will read the six image and
>
> send to terminal.
> (send-string-to-terminal
> (with-temp-buffer
>    (insert-file-contents "testing.six")
>    (buffer-string)))

Thanks; the testing.six file is more than 4096 bytes long, so it's not
surprising that this use case triggers the bug.  My guess is that we
haven't had reports about this before just because it's a pretty unusual
use case, and your proposed patch seems like the correct solution here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.