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.devel Subject: Re: Bugfix for utf-8 XTerm/MinTTY and (set-input-meta-mode t) Date: Tue, 01 Jun 2021 20:29:45 +0300 Message-ID: <83h7ihze5y.fsf@gnu.org> References: <83k0ndzfxr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: max.mikhanosha@protonmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 01 19:30:36 2021 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 1lo8Ds-0008gM-9c for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Jun 2021 19:30:36 +0200 Original-Received: from localhost ([::1]:41550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo8Dr-00085K-Cv for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Jun 2021 13:30:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo8DL-0007OL-UP for emacs-devel@gnu.org; Tue, 01 Jun 2021 13:30:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38728) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo8DL-0003J0-MA; Tue, 01 Jun 2021 13:30:03 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2757 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 1lo8DI-0000uI-Vv; Tue, 01 Jun 2021 13:30:02 -0400 In-Reply-To: <83k0ndzfxr.fsf@gnu.org> (message from Eli Zaretskii on Tue, 01 Jun 2021 19:51:28 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:270226 Archived-At: > Date: Tue, 01 Jun 2021 19:51:28 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > Date: Tue, 01 Jun 2021 16:19:40 +0000 > > From: Max Mikhanosha > > > > Both XTerm and MinTTY, when configured to send meta modifier as 8th bit while in utf-8 mode, will first add 8th bit, and then encode resulting character with utf-8. For example Meta-X is encoded as ?x+120 = #248 codepoint, encoded as 0xc3,0xb8 > > If these terminal emulators send M-x as 248 decimal, then how do they > send the Latin character ΓΈ, whose codepoint is 248 decimal? And btw, why do you use MetaSendEscape:false with these emulators? It sounds like if you set MetaSendEscape:true, your problems will be solved, no? FWIW, this is how I use terminal emulators here, for many years, including with non-ASCII input (and of course Meta-characters), and I have yet to see a single problem.