From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24741: 25.1.50; Buffer encoding corrupted up by 'make' in shell-mode Date: Thu, 20 Oct 2016 10:14:55 +0300 Message-ID: <8337jrv6ds.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1476947799 22116 195.159.176.226 (20 Oct 2016 07:16:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 07:16:39 +0000 (UTC) Cc: jwiegley@gmail.com, 24741@debbugs.gnu.org To: Simon Peyton Jones Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 09:16:35 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 1bx7aS-0003pg-Mi for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 09:16:24 +0200 Original-Received: from localhost ([::1]:52862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx7aU-0006Db-Vu for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 03:16:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx7aL-0006DF-F9 for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 03:16:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx7aG-0004Uh-Gg for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 03:16:17 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bx7aG-0004Ub-Ct for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 03:16:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bx7a6-0000bZ-Fo for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 03:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2016 07:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24741-submit@debbugs.gnu.org id=B24741.14769477242271 (code B ref 24741); Thu, 20 Oct 2016 07:16:02 +0000 Original-Received: (at 24741) by debbugs.gnu.org; 20 Oct 2016 07:15:24 +0000 Original-Received: from localhost ([127.0.0.1]:40266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx7ZU-0000aZ-7A for submit@debbugs.gnu.org; Thu, 20 Oct 2016 03:15:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx7ZS-0000aM-2n for 24741@debbugs.gnu.org; Thu, 20 Oct 2016 03:15:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx7ZH-0004J3-Qd for 24741@debbugs.gnu.org; Thu, 20 Oct 2016 03:15:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx7ZH-0004Ip-N3; Thu, 20 Oct 2016 03:15:11 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4672 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bx7ZD-0002tf-L4; Thu, 20 Oct 2016 03:15:08 -0400 In-reply-to: (message from Simon Peyton Jones on Wed, 19 Oct 2016 19:07:44 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:124710 Archived-At: > From: Simon Peyton Jones > Date: Wed, 19 Oct 2016 19:07:44 +0000 > > It's not 'make' per se; for example 'make --version' or 'make boot' (which does nothing) is fine. The invocation of make that causes the funny quotes to appear invokes Python, if that helps. > > Deeply mysterious. > > If I start a new shell, I get quotes looking nice again. Could something in the shell environment be affected by invoking python? There aren't enough data in the report, only hints. The image posted by John indicates a Unixy shell is also involved, so it could be some issue with the shell itself or its environment (I'm guessing the shell is either a Cygwin or an MSYS2 Bash, which might mean the Emacs setup of running them involves setting some coding-systems to UTF-8, for example). Then there are 'make' and Python, which are somehow related, but it's unclear how, due to lack of a complete description. In general, this looks like UTF-8 output by a subprocess gets decoded using the Windows codepage. But it's impossible to tell where exactly is the problem without knowing the details. IOW, a reproducible recipe, starting from "emacs -Q", and including only those customizations that are needed for the reproduction, is necessary to analyze this problem. It is most likely a problem either with user customization of the coding-systems, or with some subtle incompatibility between Cygwin/MSYS programs and the native Windows build of Emacs.