From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59341: 29.0.50; Lisp files with other encoding than UTF-8? Date: Thu, 17 Nov 2022 21:54:04 +0200 Message-ID: <83iljdcq77.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59341@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 17 20:55:24 2022 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 1ovkyq-0009oD-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Nov 2022 20:55:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovkyV-0005G8-Vp; Thu, 17 Nov 2022 14:55:04 -0500 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 1ovkyU-0005Ft-Fe for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 14:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovkyU-0000Nu-7N for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 14:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovkyU-0002ak-3g for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 14:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59341 X-GNU-PR-Package: emacs Original-Received: via spool by 59341-submit@debbugs.gnu.org id=B59341.16687148559888 (code B ref 59341); Thu, 17 Nov 2022 19:55:02 +0000 Original-Received: (at 59341) by debbugs.gnu.org; 17 Nov 2022 19:54:15 +0000 Original-Received: from localhost ([127.0.0.1]:34430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovkxj-0002ZP-AI for submit@debbugs.gnu.org; Thu, 17 Nov 2022 14:54:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovkxd-0002Z9-UE for 59341@debbugs.gnu.org; Thu, 17 Nov 2022 14:54:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovkxY-0000Iq-LK; Thu, 17 Nov 2022 14:54:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=p3ao8FytNFtBO1Lx192Tkjna8d/Z9FdoILVk+cxtvkA=; b=YKh0284YBS8X G12gv5RW9bBmupklB3fYSH1Cs86uJ99vGGYmPrvGuyFOWs54+JTxbzJsDeaVAKjEp0ZjDS9AY5WVg xjBG7vYJN+BF71OXwZiT6abPaocZCLT0l5F6l5zHXpv4CaF1Bt9QiWAfwg9+2ZP+KAEKpIEqdMald 1d+TmYAcCooJbyxzTIONT9uvaVTjJXf6ViAN3G3z43tg0ORHDVoVtJFOf1xTA5h34rkjSvRQIxtqB 4Q9rtjgLqSL4ahIEDaV+Ca4iikfd5wVEDsCeTMnpXSxy11ijITjvfSUZQoj5DFP7sUBv8TA2BrI7e XZ1n7MW3c/0MXKDam1lDVg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovkxY-0002jp-3x; Thu, 17 Nov 2022 14:54:04 -0500 In-Reply-To: (message from Stefan Kangas on Thu, 17 Nov 2022 11:38:46 -0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248139 Archived-At: > From: Stefan Kangas > Date: Thu, 17 Nov 2022 11:38:46 -0800 > > I noticed that codespell was having trouble with one of our files > (ethio-util.el), refusing to read it as UTF-8. This lead to some > unexpected and unwanted behavior. > > So I took a closer look and found that several files in lisp/ appear to > be use some other encoding than UTF-8: > > $ cd lisp ; for f in $(git ls-files|egrep '.el$'); \ > do file $f | grep -v UTF-8 | grep -v " ASCII" ; \ > done ; cd - > international/titdic-cnv.el: Lisp/Scheme program, Non-ISO > extended-ASCII text, with LF, NEL line terminators > language/ethio-util.el: Lisp/Scheme program, Non-ISO extended-ASCII > text, with LF, NEL line terminators > language/ethiopic.el: Lisp/Scheme program, Non-ISO extended-ASCII text > language/ind-util.el: Lisp/Scheme program, Non-ISO extended-ASCII > text, with LF, NEL line terminators > language/tibet-util.el: Lisp/Scheme program, Non-ISO extended-ASCII > text, with LF, NEL line terminators > language/tibetan.el: Non-ISO extended-ASCII text, with LF, NEL line terminators > leim/quail/ethiopic.el: Non-ISO extended-ASCII text, with LF, NEL line > terminators > leim/quail/tibetan.el: Lisp/Scheme program, Non-ISO extended-ASCII > text, with LF, NEL line terminators > > Should these files be converted to UTF-8? No. AFAIR, they are in utf-8-emacs because they include characters beyond the Unicode range, which UTF-8 cannot encode. See, for example, the codepoints that start around line 645 in ind-util.el, which are used for converting between IS 13194 (ISCII) and Unicode.