From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents Date: Mon, 02 Nov 2020 17:30:44 +0100 Message-ID: <87mtzz4t6z.fsf@gnus.org> References: <5f9b49e9.1c69fb81.72b0f.80d6@mx.google.com> <83ft5wb0jz.fsf@gnu.org> <87mu03j3cv.fsf@gnus.org> <83v9eralri.fsf@gnu.org> <87v9en6axf.fsf@gnus.org> <83zh3zd9ou.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30967"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44320@debbugs.gnu.org, lin.sun@zoom.us To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 02 17:31:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZcje-0007wq-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Nov 2020 17:31:10 +0100 Original-Received: from localhost ([::1]:42232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZcjd-00016A-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Nov 2020 11:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZcjW-00015j-R7 for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2020 11:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZcjW-0000k5-Fl for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2020 11:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZcjW-0000Uh-Cx for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2020 11:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Nov 2020 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44320 X-GNU-PR-Package: emacs Original-Received: via spool by 44320-submit@debbugs.gnu.org id=B44320.16043346581887 (code B ref 44320); Mon, 02 Nov 2020 16:31:02 +0000 Original-Received: (at 44320) by debbugs.gnu.org; 2 Nov 2020 16:30:58 +0000 Original-Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZcjR-0000UN-OT for submit@debbugs.gnu.org; Mon, 02 Nov 2020 11:30:58 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:48954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZcjP-0000U8-8S for 44320@debbugs.gnu.org; Mon, 02 Nov 2020 11:30:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VPDrzz0WVTmXukshllYYQULNSG8MR53WOHSbayH7uLI=; b=ZvDzCvhtKVt3yoGMkCJI3xddeW HcxY2oCVdIZYH34vvgcFzR06DNxEpaYAQo7fDLfzI55OZP/QVxXaNvo9OKgzbe+p1ko4Y1Y9A5iPo BO3z6aHecQWxOf6enwEnJsj2Wr3Y8P+q4gziqebnCO+Tt4M7/cunLK++yKtD2nzvgg8Y=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZcjF-0002a2-Lm; Mon, 02 Nov 2020 17:30:49 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXT0caPWlY4Mir/ //9kTWJkAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QLAhAbEDR/ciAAAAGkSURBVCjPVdLBjtowEAbg sVUilVO3otHCfQ/kKcKhHHIKVSba+LSHBRU/BSAt0va0IIi0ObGVE+H/KTsGVLU+JP408cS/E6Lb UIAP96dwGf2L5IYvfyuDG6KAnzdcGmDNzGlvzmgmhA2MI7JoKiXoG2XdV2zuBXtTSNvcvhSK/BSM ZTdknytKNfgTUaHa9ILiWTMPjoKBxsyVZZWXpOi7rg3asuKp4NRtIciKTFAkGXAsp0+xwBgA62X2 thfIFF4tss1v/U6hcK++ZdFH31OvDz+k+LXX0DCkcqM8PozOpCWVPfi8fyhdAC92j7NsVbt4RtHu GY958qM+htirB+MHdsvGL2hFw0nZtEMueELryYtyy/mSWcLhzWtvAS5URTjNowWatuIlCB9pjFr2 1HrQeXYcQc4WRyuVXCX4bOGZjbyHEh9bzJkbQkrReYQz0ZgJRNpZnCh9uKIDnMauJPl2etuE8Dt7 AW7jf8iaGLDmCnWqW2APEx7THrWv3bgJiBpYX6J/xS+P9g5rWUhoEPnOYWXDgRiYtmu799CgGpeJ /BYsu+Y/5JjZYM8ec9AAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTEtMDJUMTY6Mjc6MTYrMDA6 MDARmVE4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTExLTAyVDE2OjI3OjE2KzAwOjAwYMTphAAA AABJRU5ErkJggg== X-Now-Playing: He Said's _Take Care_: "Tongue Ties" In-Reply-To: <83zh3zd9ou.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 02 Nov 2020 18:07:13 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192551 Archived-At: Eli Zaretskii writes: > What is the significance of 4K bytes in this case? Is 'fwrite' > documented not to write more than that? I couldn't find such > documentation. writes that are less than a system block size are unlikely to be chopped into parts. > Anyway, if we need to fix calls to 'fwrite', we should provide > something similar to emacs_write, and use it everywhere we use > 'fwrite' now. I can't see anything in the fwrite man page that guarantees that it'll write all that we tell it to write: RETURN VALUE On success, fread() and fwrite() return the number of items read or = writ=E2=80=90 ten. This number equals the number of bytes transferred only when = size is 1. If an error occurs, or the end of the file is reached, the r= eturn value is a short item count (or zero). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no