From debbugs-submit-bounces@debbugs.gnu.org Sun May 06 12:08:40 2012 Received: (at submit) by debbugs.gnu.org; 6 May 2012 16:08:40 +0000 Received: from localhost ([127.0.0.1]:38759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SR40l-0003Zm-Kq for submit@debbugs.gnu.org; Sun, 06 May 2012 12:08:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38372) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SR40j-0003ZZ-Ba for submit@debbugs.gnu.org; Sun, 06 May 2012 12:08:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SR3yk-0003pE-EA for submit@debbugs.gnu.org; Sun, 06 May 2012 12:06:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,FROM_12LTRDOM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR3yk-0003pA-BF for submit@debbugs.gnu.org; Sun, 06 May 2012 12:06:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR3yi-0005x0-HO for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:06:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SR3yg-0003ov-BY for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:06:31 -0400 Received: from defaultvalue.org ([70.85.129.156]:51306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR3yg-0003oi-6j for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:06:30 -0400 Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id CAB1890D35; Sun, 6 May 2012 11:07:44 -0500 (CDT) Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id DC7D114E13B; Sun, 6 May 2012 11:06:26 -0500 (CDT) From: Rob Browning To: bug-gnu-emacs@gnu.org Subject: call-process behavior wrt. to read only buffers depends on coding system for read operations Date: Sun, 06 May 2012 11:06:26 -0500 Message-ID: <87ehqx1egt.fsf@trouble.defaultvalue.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit Cc: Pierre Courtieu , 651420@bugs.debian.org, 651420-forwarded@bugs.debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) (If possible, please preserve the 651420-forwarded address in any replies.) It appears that depending on the LOCALE setting, Emacs 23.4 may or may not signal a "buffer is read-only" error. At least here, this can be demonstrated as follows. Save to ./test.el: (let ((buf (get-buffer-create "xxx"))) (with-current-buffer buf (compilation-mode)) (let ((coding-system-for-read 'iso-latin-1-unix)) (condition-case err (progn (call-process "/bin/cat" "/proc/cpuinfo" buf t) (message "iso-latin-1-unix: No call-process error")) (error (message "iso-latin-1-unix: call-process error: %s %s" (car err) (cdr err))))) (let ((coding-system-for-read 'utf-8-unix)) (condition-case err (progn (call-process "/bin/cat" "/proc/cpuinfo" buf t) (message "utf-8-unix: No call-process error")) (error (message "utf-8-unix: call-process error: %s %s" (car err) (cdr err)))))) Run: emacs -q --no-site-file -batch -l ./test.el which should produce something like this: iso-latin-1-unix: call-process error: buffer-read-only (xxx) utf-8-unix: No call-process error Additional information may be found here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651420 Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 From debbugs-submit-bounces@debbugs.gnu.org Sun May 06 20:41:33 2012 Received: (at control) by debbugs.gnu.org; 7 May 2012 00:41:33 +0000 Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRC17-0006qa-Bo for submit@debbugs.gnu.org; Sun, 06 May 2012 20:41:33 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:39648 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRC15-0006qT-7m for control@debbugs.gnu.org; Sun, 06 May 2012 20:41:32 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SRBzA-0007qL-Nv for control@debbugs.gnu.org; Sun, 06 May 2012 20:39:32 -0400 Date: Sun, 06 May 2012 20:39:32 -0400 Message-Id: Subject: control message for bug 11421 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) forwarded 11421 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651420 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 13:08:37 2019 Received: (at 11421) by debbugs.gnu.org; 3 Oct 2019 17:08:37 +0000 Received: from localhost ([127.0.0.1]:41013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4aj-0005bc-0n for submit@debbugs.gnu.org; Thu, 03 Oct 2019 13:08:37 -0400 Received: from quimby.gnus.org ([80.91.231.51]:52280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4ah-0005bS-7R for 11421@debbugs.gnu.org; Thu, 03 Oct 2019 13:08:35 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG4ac-0001fj-FZ; Thu, 03 Oct 2019 19:08:32 +0200 From: Lars Ingebrigtsen To: Rob Browning Subject: Re: bug#11421: call-process behavior wrt. to read only buffers depends on coding system for read operations References: <87ehqx1egt.fsf@trouble.defaultvalue.org> Date: Thu, 03 Oct 2019 19:08:30 +0200 In-Reply-To: <87ehqx1egt.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Sun, 06 May 2012 11:06:26 -0500") Message-ID: <871rvthi41.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Rob Browning writes: > It appears that depending on the LOCALE setting, Emacs 23.4 may or may > not signal a "buffer is read-only" error. At least here, this can be > demonstrated as follows. > > Save to ./test.el: > > (l [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11421 Cc: Pierre Courtieu , 11421@debbugs.gnu.org, 651420-forwarded@bugs.debian.org, 651420@bugs.debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Rob Browning writes: > It appears that depending on the LOCALE setting, Emacs 23.4 may or may > not signal a "buffer is read-only" error. At least here, this can be > demonstrated as follows. > > Save to ./test.el: > > (let ((buf (get-buffer-create "xxx"))) > (with-current-buffer buf > (compilation-mode)) > (let ((coding-system-for-read 'iso-latin-1-unix)) > (condition-case err > (progn > (call-process "/bin/cat" "/proc/cpuinfo" buf t) > (message "iso-latin-1-unix: No call-process error")) > (error > (message "iso-latin-1-unix: call-process error: %s %s" > (car err) (cdr err))))) > (let ((coding-system-for-read 'utf-8-unix)) > (condition-case err > (progn > (call-process "/bin/cat" "/proc/cpuinfo" buf t) > (message "utf-8-unix: No call-process error")) > (error > (message "utf-8-unix: call-process error: %s %s" > (car err) (cdr err)))))) [...] > which should produce something like this: > > iso-latin-1-unix: call-process error: buffer-read-only (xxx) > utf-8-unix: No call-process error When I try this in Emacs 27, I get: Waiting for process to die...done iso-latin-1-unix: call-process error: buffer-read-only (xxx) Waiting for process to die...done utf-8-unix: call-process error: buffer-read-only (xxx) Can you still reproduce this bug on modern Emacs versions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 13:08:42 2019 Received: (at control) by debbugs.gnu.org; 3 Oct 2019 17:08:42 +0000 Received: from localhost ([127.0.0.1]:41016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4ao-0005bx-BX for submit@debbugs.gnu.org; Thu, 03 Oct 2019 13:08:42 -0400 Received: from quimby.gnus.org ([80.91.231.51]:52294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4am-0005bm-7R for control@debbugs.gnu.org; Thu, 03 Oct 2019 13:08:40 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG4aj-0001fu-HV for control@debbugs.gnu.org; Thu, 03 Oct 2019 19:08:39 +0200 Date: Thu, 03 Oct 2019 19:08:37 +0200 Message-Id: <87zhihg3je.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11421 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 11421 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 11421 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 06:23:48 2020 Received: (at 11421-done) by debbugs.gnu.org; 17 Apr 2020 10:23:48 +0000 Received: from localhost ([127.0.0.1]:39978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPO9u-0001gn-4b for submit@debbugs.gnu.org; Fri, 17 Apr 2020 06:23:48 -0400 Received: from ted.gofardesign.uk ([67.225.143.91]:45712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPO9s-0001gZ-0h for 11421-done@debbugs.gnu.org; Fri, 17 Apr 2020 06:23:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=tdlaNGEj9My5qVK5MnMjmdHW9QQVT5uC+4Uv+H/a2zA=; b=d2NyEzSj+joJe0zyeCoB69LIRV bhZ7SxFj2UstTCcIMVomAxAI+6Uqc8wdJzsVRPJeuscvk35CQ1mZkk20Rh5NAg5tV6V+cdeURpH/G 8Yn8g1Xx64SWxwoc42OgS25km8NUV6zQLmHvAvMp9McjHM/Qv01KegTEeyYhOksTuBH8RqSEoplrx mGwbALIuF6NlwYdyKX3U4hk5G1FQY5eQIerRdpF54jW7vFMEezQ4JI4uA2FcSDEwdkWrIPmLflsuI FlDFdb/57mOQhQkTeZLOAOr2t8g+9R9E654KPK5WtV9kwSgYY1Ud81MSSVhgWcXQQt/vw6vgIoG2D cJd4AHdQ==; Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:34464 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jPO9m-001lhV-2x; Fri, 17 Apr 2020 06:23:34 -0400 From: Stefan Kangas To: Lars Ingebrigtsen Subject: Re: bug#11421: call-process behavior wrt. to read only buffers depends on coding system for read operations In-Reply-To: <871rvthi41.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 03 Oct 2019 19:08:30 +0200") References: <87ehqx1egt.fsf@trouble.defaultvalue.org> <871rvthi41.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 17 Apr 2020 12:23:32 +0200 Message-ID: <87v9lytnq3.fsf@stefankangas.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11421-done Cc: Pierre Courtieu , 11421-done@debbugs.gnu.org, 651420-forwarded@bugs.debian.org, 651420@bugs.debian.org, Rob Browning X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Rob Browning writes: > >> It appears that depending on the LOCALE setting, Emacs 23.4 may or may >> not signal a "buffer is read-only" error. At least here, this can be >> demonstrated as follows. >> >> Save to ./test.el: >> >> (let ((buf (get-buffer-create "xxx"))) >> (with-current-buffer buf >> (compilation-mode)) >> (let ((coding-system-for-read 'iso-latin-1-unix)) >> (condition-case err >> (progn >> (call-process "/bin/cat" "/proc/cpuinfo" buf t) >> (message "iso-latin-1-unix: No call-process error")) >> (error >> (message "iso-latin-1-unix: call-process error: %s %s" >> (car err) (cdr err))))) >> (let ((coding-system-for-read 'utf-8-unix)) >> (condition-case err >> (progn >> (call-process "/bin/cat" "/proc/cpuinfo" buf t) >> (message "utf-8-unix: No call-process error")) >> (error >> (message "utf-8-unix: call-process error: %s %s" >> (car err) (cdr err)))))) > > [...] > >> which should produce something like this: >> >> iso-latin-1-unix: call-process error: buffer-read-only (xxx) >> utf-8-unix: No call-process error > > When I try this in Emacs 27, I get: > > Waiting for process to die...done > iso-latin-1-unix: call-process error: buffer-read-only (xxx) > Waiting for process to die...done > utf-8-unix: call-process error: buffer-read-only (xxx) > > Can you still reproduce this bug on modern Emacs versions? More information was requested, but none was given within 28 weeks, so I'm closing this bug. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas From unknown Sun Jun 22 08:10:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 May 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator