From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuchen Pei Newsgroups: gmane.emacs.devel Subject: Re: Coding warning attributes to wrong char Date: Sat, 17 Jun 2023 19:20:04 +1000 Message-ID: <877cs2bg3f.fsf@ypei.org> References: <87bkhebtvp.fsf@ypei.org> <834jn6siqs.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="20408"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 17 11:21:13 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qAS7K-00054z-Ul for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Jun 2023 11:21:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAS6W-0003Ye-BU; Sat, 17 Jun 2023 05:20:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAS6Q-0003YK-Of for emacs-devel@gnu.org; Sat, 17 Jun 2023 05:20:14 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAS6O-0001D6-GW; Sat, 17 Jun 2023 05:20:14 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CB5B45C0143; Sat, 17 Jun 2023 05:20:09 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 17 Jun 2023 05:20:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1686993609; x=1687080009; bh=6v HGvP6AjKq2BuS7zIflQhF4QRZzUnl9zTKNamZZtHk=; b=ziC/1EKcJOWMjn+OUQ h+l5f56GHbzN2ZSo0XTaER6TzErybQbqcoSD3NG3AsJGm4wuykzCLKxhl87TPzPU f0gYyopS/TgkTRr4ebdj2pNTgaSXYbyZo+IMUrTLq0MAK0ssyEe30qKS/9z2Dn0y uinGOE6lZpIftWry4LbZZLugz6g0sdUSde9YLhwChOQ0VvbpDFQQdLwqvzvSaaAX wF03NF2ZvneYy/5OQjx7Z57c5ZtqxzWIw6BTwW+XG8R7T64yP22PqJArQuJZzLUT c3fD+cW2/N0Vk6rbrik2nSC63kzq3KWO2b/6Wm7yhL1DABkFeMqoOzXKsOyDuCtb 5qzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1686993609; x=1687080009; bh=6vHGvP6AjKq2B uS7zIflQhF4QRZzUnl9zTKNamZZtHk=; b=i4KkZ1UDx0lBBYA2WmDb31vYzbaBh NdxkVnZSCXsqt/QFgeBPGPVezkCz6CWXYuq5KXZ8PL2BLgvFQ2q/LLsu/A0vbMxF 1RCcpwQ2ZfbRr7fgs0bheLeXp64/8crqcehWmaDV+0JXhU/yD3KZAGvWJ8wkABem dvCG4qxAQrqmBcNYd1/pSg740PZe2osTgO6KQRbg9idBLrj1JeuINMqjnlM+QyCd /qCTyW7shnaTgtZb+Xo+5UeOr8NidnIbIH8pOJNsy7UzLkvQK7g92MUswThYRJlw ZZ4cdrIP29tUePWpJtVlIMtH0I6rgznf1UefbuXe/sNda7uySbxGhoJyg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvjedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepjghutghh vghnucfrvghiuceoihguseihphgvihdrohhrgheqnecuggftrfgrthhtvghrnhepfeehhf ekjeevieekheejieeufedtgeevieevjeekledvleefudefuefgheetjedunecuffhomhgr ihhnpeihphgvihdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehiugeshihpvghirdhorhhg X-ME-Proxy: Feedback-ID: i51b146f9:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 Jun 2023 05:20:07 -0400 (EDT) In-Reply-To: <834jn6siqs.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Jun 2023 09:30:51 +0300") Received-SPF: pass client-ip=66.111.4.29; envelope-from=id@ypei.org; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306872 Archived-At: On Sat 2023-06-17 09:30:51 +0300, Eli Zaretskii wrote: > What is your proposal for better dealing with this situation? > > The basic problem here is that Emacs cannot know whether the null > characters are or aren't supposed to be in the file. You as the user > do know, presumably because you know where this file came from or what > is its purpose. Huh? I don't know. I had to bisect a 10+MB file to find the offending character. Best, Yuchen -- PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0