From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich =?utf-8?Q?M=C3=BCller?= Newsgroups: gmane.emacs.devel Subject: Re: Disambiguate modeline character for UTF-8? Date: Fri, 07 Jul 2023 07:48:41 +0200 Message-ID: References: <83r1rx6vgv.fsf@gnu.org> <83lfi56te9.fsf@gnu.org> <83cz16k2kx.fsf@gnu.org> <833522jwvr.fsf@gnu.org> <87wmzdjk6l.fsf@yahoo.com> <219844d2-ca07-30f4-4e2c-1b1df76d0fa5@cs.ucla.edu> <83fs60hnj2.fsf@gnu.org> <83cz14guz3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20817"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 07 07:49:41 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 1qHeLb-0005AI-5L for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jul 2023 07:49:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHeKr-0001Yb-Lz; Fri, 07 Jul 2023 01:48:53 -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 1qHeKp-0001YQ-TP for emacs-devel@gnu.org; Fri, 07 Jul 2023 01:48:52 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qHeKo-00087d-3c; Fri, 07 Jul 2023 01:48:51 -0400 In-Reply-To: <83cz14guz3.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Jul 2023 08:18:40 +0300") Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:307544 Archived-At: >>>>> On Fri, 07 Jul 2023, Eli Zaretskii wrote: >> The K (for all KOI8 variants) was actually suggested by a person from >> Ukraine, back in 2020: >> https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg01010.html > That's one person... Yes. >> > How about using =D0=A3 instead? (Assuming using non-ASCII works there= ; the >> > code seems to allow that.) >>=20 >> I've just tested a patch with current master, and for me the =D0=A3 works >> both in an X frame ("=D0=A3" in the mode line), in a text terminal under= X >> ("UU=D0=A3") and in the Linux console ("UU=D0=A3"). >>=20 >> Can we assume that users have the necessary fonts installed? > In Ukraine? most probably. > Did that character on a GUI frame need a non-default font, or was it > supported by the default font. I'd expect the Cyrillic script to be > supported by the fonts people use as the default in Emacs. It's supported by the default font for me (which is Droid Sans Mono). =D0=A3 aka U+0423 is contained in WGL4, and I guess that most fonts (also on GNU/Linux) would cover a superset of it. Updated patch below. >From fbcc65ebde142f998e9dae8ad711f484585ef29b Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Ulrich=3D20M=3DC3=3DBCller?=3D Date: Thu, 6 Jul 2023 20:36:09 +0200 Subject: [PATCH] Disambiguate mode line indication for utf-8 and utf-16 * lisp/international/mule-conf.el (utf-7): * lisp/language/cyrillic.el (koi8-u): Change mnemonic letters to ?u and ?\N{cyrillic capital letter u}, respectively. --- lisp/international/mule-conf.el | 2 +- lisp/language/cyrillic.el | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf= .el index a27aaf9e522..f65f124b633 100644 --- a/lisp/international/mule-conf.el +++ b/lisp/international/mule-conf.el @@ -1600,7 +1600,7 @@ 'ascii (define-coding-system 'utf-7 "UTF-7 encoding of Unicode (RFC 2152)." :coding-type 'utf-8 - :mnemonic ?U + :mnemonic ?u :mime-charset 'utf-7 :charset-list '(unicode) :pre-write-conversion 'utf-7-pre-write-conversion diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index 7af87e65703..f923c84e221 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el @@ -126,7 +126,8 @@ 'cp878 (define-coding-system 'koi8-u "KOI8-U 8-bit encoding for Cyrillic (MIME: KOI8-U)" :coding-type 'charset - :mnemonic ?U + ;; This used to be ?U which collided with UTF-8. + :mnemonic ?\N{cyrillic capital letter u} ; =D0=A3 :charset-list '(koi8-u) :mime-charset 'koi8-u) =20 --=20 2.41.0