unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Simon Peyton Jones <simonpj@microsoft.com>
Cc: jwiegley@gmail.com, 24741@debbugs.gnu.org
Subject: bug#24741: 25.1.50; Buffer encoding corrupted up by 'make' in shell-mode
Date: Sat, 22 Oct 2016 10:17:48 +0300	[thread overview]
Message-ID: <83oa2crgwz.fsf@gnu.org> (raw)
In-Reply-To: <DM2PR21MB0028EEBAA18E7965C1433184ADD40@DM2PR21MB0028.namprd21.prod.outlook.com> (message from Simon Peyton Jones on Fri, 21 Oct 2016 21:20:34 +0000)

> From: Simon Peyton Jones <simonpj@microsoft.com>
> CC: "24741@debbugs.gnu.org" <24741@debbugs.gnu.org>, Simon Peyton Jones
> 	<simonpj@microsoft.com>
> Date: Fri, 21 Oct 2016 21:20:34 +0000
> 
> If you want me to try emacs -Q, just let me know how to do that and what info to collect.  I've never done that before.

Start Emacs with "emacs -Q", then try reproducing the problem by doing
whatever you do when the problem normally happens.

If "emacs -Q" lacks some optional features and custom settings of
certain variables, load those features and customize those variables
as part of the recipe (i.e. record everything you need to do starting
from "emacs -Q" until you are able to run the commands that produce
the problematic output).

Then post here the full recipe for reproducing the problem, including
everything you have recorded on the way.

> Customisations. In my .emacs I have the following, which John Wiegley gave to me in the first place
> 
> (setq-default locale-coding-system 'utf-8-unix)
> (setq-default buffer-file-coding-system 'utf-8-unix)
> (set-default-coding-systems 'utf-8-unix)
> (set-terminal-coding-system 'utf-8-unix)
> (set-keyboard-coding-system 'utf-8-unix)
> (set-selection-coding-system 'utf-8-unix)
> (prefer-coding-system 'utf-8-unix)
> 
> (defun utf8-shell ()
>   (interactive)
>   (set-default-coding-systems 'utf-8-unix)
>   (shell))

This is already dead wrong on Windows, especially setting the default
encodings to UTF-8.  It cannot possibly work well on Windows.  And you
shouldn't need this.

What happens if you remove these and try again -- does the problem
still appear?

Where did you get your Bash, your make.exe, and your Python?  If they
are from the MSYS2 project, the only customization of coding-systems
you may need is of process-coding-system-alist.  If you do that, make
sure the encoding is still your system codepage, and only the decoding
part is UTF-8.  That's because the encoding is used to encode the
command-line arguments, and you certainly don't want them to be
encoded in UTF-8 on Windows, because this is unsupported.





  reply	other threads:[~2016-10-22  7:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-19 17:32 bug#24741: 25.1.50; Buffer encoding corrupted up by 'make' in shell-mode John Wiegley
2016-10-19 19:07 ` Simon Peyton Jones
2016-10-20  7:14   ` Eli Zaretskii
2016-10-20 19:19     ` John Wiegley
2016-10-21  6:42       ` Eli Zaretskii
2016-10-21 21:20         ` Simon Peyton Jones
2016-10-22  7:17           ` Eli Zaretskii [this message]
2016-12-07 20:29             ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83oa2crgwz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24741@debbugs.gnu.org \
    --cc=jwiegley@gmail.com \
    --cc=simonpj@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).