GNU bug report logs -
#24741
25.1.50; Buffer encoding corrupted up by 'make' in shell-mode
Previous Next
Reported by: John Wiegley <jwiegley <at> gmail.com>
Date: Wed, 19 Oct 2016 17:37:02 UTC
Severity: normal
Tags: moreinfo
Found in version 25.1.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Simon Peyton Jones <simonpj <at> microsoft.com>
> CC: "24741 <at> debbugs.gnu.org" <24741 <at> debbugs.gnu.org>, Simon Peyton Jones
> <simonpj <at> 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.
This bug report was last modified 8 years and 250 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.