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: Display of undisplayable characters: \U01F3A8 instead of diamond Date: Sun, 28 Aug 2022 14:44:03 +0300 Message-ID: <83sflgy4n0.fsf@gnu.org> References: <834jxxymbp.fsf@gnu.org> <83v8qcy83q.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29136"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 28 13:44:53 2022 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 1oSGij-0007NU-Fr for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Aug 2022 13:44:53 +0200 Original-Received: from localhost ([::1]:43528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSGii-0001ml-6Z for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Aug 2022 07:44:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSGhj-00017e-MW for emacs-devel@gnu.org; Sun, 28 Aug 2022 07:43:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSGhi-0003qt-PF; Sun, 28 Aug 2022 07:43:50 -0400 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=gtoeZjV60C5DQMH/XVVt0Pn+A/kuBkahKvQ0Y6ZtKz4=; b=my7VlUv37jX5 skdkSICP4lomU3ahT9DGcETXW/lJ4EkcbQSMT/g2Oih+OmTDUOv6Ervlf96hz24gCsgbijxDFXYcm pGTQSnXZroKiJgVmUunShR79YwkOBgZ3SSbaGaG4GCytBIfdINqeZ8pObk8jhH5raN846srjr6EXx Ax+3CQm6xOG6G7sUsGsaVtB9CjxEYEgp0U1k/gFchzYo0HzRWmDg8vS7+0BG3tVqUh59KMGLahN/u 4daNUgkUqdiuQs2XyTs2QIXSmJbShfFbkJlMh7NRKLtwvCMztg1h65n+HCLXXQFuUICVjBbWmM1du T6bp5ATvALXbU20HJzkAkA==; Original-Received: from [87.69.77.57] (port=2009 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 1oSGhe-0007dk-WD; Sun, 28 Aug 2022 07:43:47 -0400 In-Reply-To: (message from Alan Mackenzie on Sun, 28 Aug 2022 11:07:24 +0000) 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" Xref: news.gmane.io gmane.emacs.devel:294234 Archived-At: > Date: Sun, 28 Aug 2022 11:07:24 +0000 > Cc: rms@gnu.org, emacs-devel@gnu.org > From: Alan Mackenzie > > > > Why is that coding-system-equal form there? > > > It was written based on the assumption that a terminal that supports > > the UTF-8 encoding can also display the original characters reasonably > > enough. Are you saying that the Linux console lies about that, and > > those characters are displayed as hex codes? > > Well, I think "lies" is a bit strong, here. The Linux console uses UTF-8 > characters, but is restricted to an arbitrary selection of 256 of them. > An attempt to display any other character on the screen gets \ufffd > displayed instead. Possibly, double-width characters aren't correctly > handled, I don't know. My console is configured to use Latin-1, and it > also includes some line graphic characters, but not the punctuation > characters used by makeinfo. If the console is configured for Latin-1, how come the terminal's encoding is UTF-8? > Those characters were indeed displayed as hex codes, until I applied the > patch below. Thanks, installed on the release branch.