[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44486: 27.1; C-@ chars corrupt elisp buffer
From: |
Eli Zaretskii |
Subject: |
bug#44486: 27.1; C-@ chars corrupt elisp buffer |
Date: |
Sat, 14 Nov 2020 17:09:20 +0200 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, thievol@posteo.net, handa@gnu.org,
> schwab@linux-m68k.org, 44486@debbugs.gnu.org
> Date: Sat, 14 Nov 2020 09:02:16 -0500
>
> > 0 is different: it says to obey the value of
> > inhibit-null-byte-detection resp. inhibit-iso-escape-detection. t
> > means inhibit the detection unconditionally, which is not what we
> > want.
>
> Actually, for prefer-utf-8 files, I think we never want to automatically
> fallback to binary.
I think you are assuming prefer-utf-8 is something other than what it
is. It is not a variant of UTF-8, it is a variant of 'undecided'
(i.e. it starts by detecting the encoding), which prefers UTF-8 if
that can decode the text. inhibit-null-byte-detection etc. are
relevant to the detection phase, not to the decoding phase. It is
wrong IMO to decide to use UTF-8 for a binary byte stream just because
it includes valid UTF-8 byte sequences. If the input text is known to
be UTF-8, even though it includes null bytes, the user or the
application should either bind coding-system-for-read or
inhibit-null-byte-detection.
> IOW I think Thierry's situation shows a bug in Emacs rather than
> a pilot error.
I disagree.
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, (continued)
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/06
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/06
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/06
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Lars Ingebrigtsen, 2020/11/09
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/09
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Lars Ingebrigtsen, 2020/11/09
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/09
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Lars Ingebrigtsen, 2020/11/10
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/10
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Stefan Monnier, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer,
Eli Zaretskii <=
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Stefan Monnier, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Stefan Monnier, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Stefan Monnier, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/15
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Stefan Monnier, 2020/11/14
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Eli Zaretskii, 2020/11/15
- bug#44486: 27.1; C-@ chars corrupt elisp buffer, Stefan Monnier, 2020/11/15