all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Philippe Vaucher <philippe.vaucher@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: branch master segfault (2019-02-05)
Date: Wed, 06 Feb 2019 21:46:48 +0200	[thread overview]
Message-ID: <83h8dgsnrr.fsf@gnu.org> (raw)
In-Reply-To: <CAGK7Mr42sQoxttHtsx6RMbqFEko9__zp=jR7MhmJ5k065WyTzQ@mail.gmail.com> (message from Philippe Vaucher on Wed, 6 Feb 2019 20:00:45 +0100)

> From: Philippe Vaucher <philippe.vaucher@gmail.com>
> Date: Wed, 6 Feb 2019 20:00:45 +0100
> Cc: Emacs developers <emacs-devel@gnu.org>
> 
> silex@silex-laptop:~$ docker run -it --rm silex/emacs:master locale 
> LANG=
> LANGUAGE=
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
> ```

That's it: this is the "C" locale, without any codeset being declared
by any of these variables.

> Out of curiosity I might investigate why this happens, but maybe there lies some unharmful bug in emacs
> there that went unnoticed for long because `safe_terminal_coding` just works.

There's no bug, AFAICT.  When Emacs finds that the locale's codeset
doesn't do any encoding, it uses safe_terminal_coding.  The comments
near the code which was segfaulting say that much.
safe_terminal_coding is a coding-system that can handle any character
"safely".

> Is all the detection happening in `setup_coding_system`?

Which detection did you have in mind?  There's no detection inside
setup_coding_system, but to answer your question more fully, I'd like
to understand what exactly are you asking about.  If you are asking
about where does Emacs take the terminal encoding, then this is set up
according to the locale, see set-locale-environment.  If you want to
look into this, I'd start by figuring out why you have the POSIX
(a.k.a. "C") locale in the docker.



  reply	other threads:[~2019-02-06 19:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-05 14:48 branch master segfault (2019-02-05) Philippe Vaucher
2019-02-05 16:50 ` Eli Zaretskii
2019-02-06  9:00   ` Philippe Vaucher
     [not found]     ` <CAGK7Mr5KL6HPuemBXEHNQ_g6+KqhCoQPAOtQZ+zQ0mMsjQ8--A@mail.gmail.com>
2019-02-06  9:30       ` Philippe Vaucher
2019-02-06 10:33         ` Philippe Vaucher
2019-02-06 15:33           ` Eli Zaretskii
2019-02-06 15:44         ` Eli Zaretskii
2019-02-06 16:23           ` Philippe Vaucher
2019-02-06 16:45             ` Eli Zaretskii
2019-02-06 19:00               ` Philippe Vaucher
2019-02-06 19:46                 ` Eli Zaretskii [this message]
2019-02-09 17:15                   ` Philippe Vaucher

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

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

  git send-email \
    --in-reply-to=83h8dgsnrr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=philippe.vaucher@gmail.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.