From: Stefan Kangas <stefankangas@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 59341@debbugs.gnu.org
Subject: bug#59341: 29.0.50; Lisp files with other encoding than UTF-8?
Date: Thu, 17 Nov 2022 20:14:09 -0800 [thread overview]
Message-ID: <CADwFkmnRdWC0RsAMo3-G_kFEpLhD-R0Yi0gZHVTR0O0m4QMKHA@mail.gmail.com> (raw)
In-Reply-To: <83iljdcq77.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
> 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.
I see, thanks.
Do we need these characters to be raw bytes in the source code though?
I was thinking of a change similar to the below, which would
incidentally make it a bit easier to read the code.
diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el
index e2a21820f4..16161319ef 100644
--- a/lisp/language/ind-util.el
+++ b/lisp/language/ind-util.el
@@ -644,9 +644,9 @@ indian-dev-aiba-decode-region
;;Unicode vs IS13194 ;; only Devanagari is supported now.
((ucs-devanagari-to-is13194-alist
'((?\x0900 . "[U+0900]")
- (?\x0901 . " ")
- (?\x0902 . " ")
- (?\x0903 . " ")
+ (?\x0901 . "?\x180000")
+ (?\x0902 . "?\x180001")
+ (?\x0903 . "?\x180002")
(?\x0904 . "[U+0904]")
[and so on]
This change would also avoid confusing external tools. For example, the
code is completely unreadable in many external viewers, such as:
https://github.com/emacs-mirror/emacs/blob/master/lisp/language/ind-util.el#L647
next prev parent reply other threads:[~2022-11-18 4:14 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
2022-11-18 4:14 ` Stefan Kangas [this message]
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=CADwFkmnRdWC0RsAMo3-G_kFEpLhD-R0Yi0gZHVTR0O0m4QMKHA@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=59341@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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).