From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#44486: 27.1; C-@ chars corrupt elisp buffer Date: Sat, 14 Nov 2020 10:19:57 -0500 Message-ID: References: <878sbeikpr.fsf@posteo.net> <87zh3u8pqn.fsf@igel.home> <83blga8pdp.fsf@gnu.org> <838sbe8nny.fsf@gnu.org> <83361m8d1t.fsf@gnu.org> <87blg6lem7.fsf@gnus.org> <83r1p24ieo.fsf@gnu.org> <83h7psug9r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11305"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: thievol@posteo.net, larsi@gnus.org, schwab@linux-m68k.org, 44486@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 14 16:21:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdxMU-0002l2-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 16:21:10 +0100 Original-Received: from localhost ([::1]:47738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdxMT-0000RS-7i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 10:21:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdxMM-0000RJ-UO for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 10:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdxMM-000071-KE for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 10:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdxMM-0001Pd-GZ for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 10:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Nov 2020 15:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44486 X-GNU-PR-Package: emacs Original-Received: via spool by 44486-submit@debbugs.gnu.org id=B44486.16053672075338 (code B ref 44486); Sat, 14 Nov 2020 15:21:02 +0000 Original-Received: (at 44486) by debbugs.gnu.org; 14 Nov 2020 15:20:07 +0000 Original-Received: from localhost ([127.0.0.1]:51566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdxLT-0001O2-5E for submit@debbugs.gnu.org; Sat, 14 Nov 2020 10:20:07 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdxLR-0001NF-Cg for 44486@debbugs.gnu.org; Sat, 14 Nov 2020 10:20:05 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1B25A441007; Sat, 14 Nov 2020 10:20:00 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C575044068B; Sat, 14 Nov 2020 10:19:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1605367198; bh=LshaajWsQKcIP9lA9sxhinZuKvtkI58EdiON0ijv/k8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GTBKFBZyuDooiqhfD/b7tWDEQFtog7ZIWB2giHvjBGf1teN9Qh8JGrlbPgdSW/Pir 4EWs4vjwfxBImsAtaRozUKlihrrM6cCkv6Wu1gbaItW+soXLipAtpYHb0ZYk0jlPiM mPWH0SJSymE8eUaFtcodUD1oOv3+/5g6aNGB4RyttgrFPKCOgHzHEr17CYUHi60hr8 onDCuIkJKKp9f0tTY8D61lD/pvCmHBacIexgGg5MkEebRuv8Yofq5F6nM1eseu9umZ TGpvIFPNl4RAzLq17sN4dHU6dQljjtmqkLT3XbIhC4dMZpK2QHK3ogHx9FjlpXWEFU 5kjpAxfInAWcg== Original-Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 77FE112016D; Sat, 14 Nov 2020 10:19:58 -0500 (EST) In-Reply-To: <83h7psug9r.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Nov 2020 17:09:20 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193288 Archived-At: >> 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. My position is not based on principles but on pragmatic concerns. AFAIK `prefer-utf-8` is only ever used for files which are known to contain text and should almost always contain UTF-8 text. I believe if there's a NUL byte in such a files but it otherwise doesn't contain any invalid UTF-8 byte sequence, it will result in better behavior if we treat it as UFT-8 than as binary. Stefan