From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: talwrii talwrii Newsgroups: gmane.emacs.bugs Subject: bug#24531: process-send-string seems to truncate lines over 4096 characters Date: Sat, 24 Sep 2016 18:38:18 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a113d2c02b9c590053d49638c X-Trace: blaine.gmane.org 1474762346 16752 195.159.176.226 (25 Sep 2016 00:12:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Sep 2016 00:12:26 +0000 (UTC) To: 24531@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 25 02:12:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnx3F-0002sC-JL for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Sep 2016 02:12:13 +0200 Original-Received: from localhost ([::1]:36044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnx3D-0006YW-PB for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Sep 2016 20:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnx37-0006YF-7B for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 20:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnx34-00048m-M7 for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 20:12:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnx34-00048i-Ir for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 20:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bnx34-0000va-Gj for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 20:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: talwrii talwrii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Sep 2016 00:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24531 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14747622933519 (code B ref -1); Sun, 25 Sep 2016 00:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Sep 2016 00:11:33 +0000 Original-Received: from localhost ([127.0.0.1]:34905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnx2a-0000uf-Ux for submit@debbugs.gnu.org; Sat, 24 Sep 2016 20:11:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnwWd-000069-Gx for submit@debbugs.gnu.org; Sat, 24 Sep 2016 19:38:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnwWW-0007LD-Td for submit@debbugs.gnu.org; Sat, 24 Sep 2016 19:38:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnwWW-0007JT-R6 for submit@debbugs.gnu.org; Sat, 24 Sep 2016 19:38:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnwWU-0005Ap-7t for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 19:38:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnwWR-0007GI-No for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 19:38:21 -0400 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:33130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnwWR-0007Fo-HG for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2016 19:38:19 -0400 Original-Received: by mail-oi0-x22b.google.com with SMTP id r126so172065617oib.0 for ; Sat, 24 Sep 2016 16:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=sHnEABSX89YoByCmc+ashM1cSOdgJ734OqHulZEkyFE=; b=Bo/kNwnn74GLrq56Vuqy0cOsElygd+AzRsHqO2LRX+r5zlxRCuYIBXtUJk1uvfZoTM Eo+tV14zqm30lghS/rY9hXYvBeWBT77aGW1BN6k6h1W4iLBY9anjlsIlxmxaA8d8kCbk HzUxEclK0XVWiRlzZxXQ7244Zi+ElYfqK1j/GP9MpET/F6cZviDe+zsj02aZ9XJBY2WI cqmSz4kJtZvTHHQuaMyOIT347arDxvSEH1PdCwuHVyDfVSIXjF/w6p5eHiZisT0YFJd6 h8+jZWNpvUA0oKjloWKWdSoV4lsScMPhEBXFCpMeaGl5DUK2PyZCpKAxCULo25ZKIb9f huGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sHnEABSX89YoByCmc+ashM1cSOdgJ734OqHulZEkyFE=; b=HEZtcwCGlnn9zOz4JUSufRIiZJGtFtR0OCG6K64fgfmHMYUpJSks4ORZ5Q8Xiw9CZ2 dZv8kLF9uS/UJDUcgQ1BkDtPtf9hAZ9av1rmymie1PBSVB08hwPCFnH+yIuOm6jcF0h4 hpYts8SUUeEEDll/cx+l1eO/R4sPD9Z1Xw+hBhK/zG9wnHQg3WHJVYyA3aM8x2LazH5W 2CuxmgORa8ro/wkHnbBCLetqmeS7+j9+CV0DWbz79DhXTsapxXkIlzQQftDUM3YE7ynm IjlDIBtOsebe7Zqr0BGaStZ8X/E7uTK+T61NJBrDV4soKKrn2qG6fpH4+lZnaIJmxiKu cw1g== X-Gm-Message-State: AE9vXwMpumhDFZFJbLIbfqpODgbCHfHbl3CoM2q8FsWksnLMcFho0U2GGzvYePA9oyh4vbarvBhXJk6QUbAKwg== X-Received: by 10.202.88.65 with SMTP id m62mr19302625oib.7.1474760298570; Sat, 24 Sep 2016 16:38:18 -0700 (PDT) Original-Received: by 10.202.172.148 with HTTP; Sat, 24 Sep 2016 16:38:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sat, 24 Sep 2016 20:11:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123664 Archived-At: --001a113d2c02b9c590053d49638c Content-Type: multipart/alternative; boundary=001a113d2c02b9c58b053d49638a --001a113d2c02b9c58b053d49638a Content-Type: text/plain; charset=UTF-8 === Repro === i. Download attached el file ii. Read it to ensure I am not hacking your computer iii. In the same directory run emacs -Q --eval '(progn (load-file "line-repro.el") (message (format "%S" (repro))))' -nw --batch As the last line of output I get (3005 4100 6006) I wouild expect this 4100 to be 5005 The third value indicates it is the line that gets truncated rather than the string === Version details === In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-08 on binet, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11804000 System Description: Debian GNU/Linux testing (stretch) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix --001a113d2c02b9c58b053d49638a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=3D=3D=3D Repro =3D=3D=3D

i. Download attached el file
ii. Read it to ensure I a= m not hacking your computer
iii. In the same directory run

= emacs -Q --eval '(progn (load-file "line-repro.el") (message = (format "%S" (repro))))' -nw --batch

As the last= line of output I get

(3005 4100 6006)

I wouild expect this 4100 to be 5005

The third value indicates it is the line that gets truncated rathe= r than the string

=3D=3D=3D Version details =3D=3D=3D
=
In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-08 on binet, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11804= 000 System Description: Debian GNU/Linux testing (stretch) Configured using: `configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= .5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-li= sp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= .5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-li= sp:/usr/share/emacs/site-lisp --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix

--001a113d2c02b9c58b053d49638a-- --001a113d2c02b9c590053d49638c Content-Type: text/x-emacs-lisp; charset=US-ASCII; name="line-repro.el" Content-Disposition: attachment; filename="line-repro.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ithu5lxc0 CihkZWZ1biBzLXJlcGVhdCAobnVtIHMpCiAgOzsgZXh0cmFjdGVkIGZyb20gcy5lbAogICJNYWtl IGEgc3RyaW5nIG9mIFMgcmVwZWF0ZWQgTlVNIHRpbWVzLiIKICAobGV0IChzcykKICAgICh3aGls ZSAoPiBudW0gMCkKICAgICAgKHNldHEgc3MgKGNvbnMgcyBzcykpCiAgICAgIChzZXRxIG51bSAo MS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iAocy1yZXBlYXQgMzAwMCAiYSIpKSkpCiAgICAgKSkK CihkZWZ1biB3cml0ZS10by1maWxlIChpbnB1dCkKICAobGV0IChwKQoKICAgIChpZiAobm90IChm aWxlLWV4aXN0cy1wICIvdG1wL2JldHRlcnRlZS5weSIpKQogICAgICAgICh3cml0ZS1yZWdpb24g dGVlLXByb2dyYW0gbmlsICIvdG1wL2JldHRlcnRlZS5weSIpKQoKICAgIChzZXRxIHAgKHN0YXJ0 LXByb2Nlc3MgImJvY3AiICIqYm9jcCoiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICJweXRo b24iICIvdG1wL2JldHRlcnRlZS5weSIgIi90bXAvbGluZS1yZXByby1idWciKSkKICAgIChwcm9j ZXNzLXNlbmQtc3RyaW5nIHAgaW5wdXQpCiAgICAocHJvY2Vzcy1zZW5kLXN0cmluZyBwICJcbm5l eHQiKQogICAgKHByb2Nlc3Mtc2VuZC1lb2YgcCkKCiAgICAobWVzc2FnZSAoZm9ybWF0ICJXYWl0 aW5nIGZvciBwcm9jZXNzIHRvIGRpZSIpKQogICAgKHdoaWxlIChwcm9jZXNzLWxpdmUtcCBwKQog ICAgICAoc2l0LWZvciAwLjEpKQogICAgKG1lc3NhZ2UgIlByb2Nlc3MgaXMgZGVhZCIpCiAgICAo Z2V0LXN0cmluZy1mcm9tLWZpbGUgIi90bXAvbGluZS1yZXByby1idWciKQogICAgKSkKCihkZWZ1 biBnZXQtc3RyaW5nLWZyb20tZmlsZSAoZmlsZVBhdGgpCiAgIlJldHVybiBmaWxlUGF0aCdzIGZp bGUgY29udGVudC4iCiAgKHdpdGgtdGVtcC1idWZmZXIKICAgIChpbnNlcnQtZmlsZS1jb250ZW50 cyBmaWxlUGF0aCkgKGJ1ZmZlci1zdHJpbmcpKSkKCg== --001a113d2c02b9c590053d49638c--