From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 59341@debbugs.gnu.org
Subject: bug#59341: 29.0.50; Lisp files with other encoding than UTF-8?
Date: Thu, 17 Nov 2022 21:54:04 +0200 [thread overview]
Message-ID: <83iljdcq77.fsf@gnu.org> (raw)
In-Reply-To: <CADwFkmn7Zm2CCKGL+JGsm+RovOxB2kph6dtcVn6g1Z8J_Ueg6Q@mail.gmail.com> (message from Stefan Kangas on Thu, 17 Nov 2022 11:38:46 -0800)
> From: Stefan Kangas <stefankangas@gmail.com>
> 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.
next prev parent reply other threads:[~2022-11-17 19:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 19:38 bug#59341: 29.0.50; Lisp files with other encoding than UTF-8? Stefan Kangas
2022-11-17 19:54 ` Eli Zaretskii [this message]
2022-11-18 4:14 ` Stefan Kangas
2022-11-18 7:57 ` Eli Zaretskii
2022-11-18 11:11 ` Stefan Kangas
2022-11-18 11:59 ` Eli Zaretskii
2022-11-18 17:14 ` Stefan Kangas
2022-11-19 9:26 ` Eli Zaretskii
2022-11-18 16:53 ` Drew Adams
2022-11-18 17:16 ` Stefan Kangas
2022-11-18 16:49 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83iljdcq77.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=59341@debbugs.gnu.org \
--cc=stefankangas@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).