From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: What is a preferred charset? Date: Thu, 22 Nov 2018 00:30:22 +0200 Message-ID: <83o9aigj29.fsf@gnu.org> References: <87zhu24h0b.fsf@gmx.net> <87r2fe4bru.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1542840243 24686 195.159.176.226 (21 Nov 2018 22:44:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2018 22:44:03 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 23:43:59 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPbDx-0006GX-0f for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 23:43:57 +0100 Original-Received: from localhost ([::1]:42796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPbG3-00062R-IJ for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 17:46:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPb0k-0000Av-HX for emacs-devel@gnu.org; Wed, 21 Nov 2018 17:30:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPb0g-0001GD-89 for emacs-devel@gnu.org; Wed, 21 Nov 2018 17:30:18 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPb0g-0001Fn-3X; Wed, 21 Nov 2018 17:30:14 -0500 Original-Received: from [176.228.60.248] (port=1579 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gPb0d-0000UU-T5; Wed, 21 Nov 2018 17:30:12 -0500 In-reply-to: <87r2fe4bru.fsf@gmx.net> (message from Stephen Berman on Wed, 21 Nov 2018 17:48:37 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231300 Archived-At: > From: Stephen Berman > Cc: emacs-devel@gnu.org > Date: Wed, 21 Nov 2018 17:48:37 +0100 > > > When text has the 'charset' property, we show its value as the > > highest-priority charset of the characters having that property. This > > property is described in "Explicit Encoding". > > On my system (where the value of locale-coding-system is utf-8-unix) the > first entries in charset-priority-list are: ascii iso-8859-1 unicode > latin-iso8859-1 ... And calling char-charset on the character named > INVERTED EXCLAMATION MARK returns "unicode" here. That accords with > what you both wrote above about highest priority, but... > > > In the case of HELLO, each hello phrase was given the 'charset' > > property corresponding to its language's script, so as to instruct > > Emacs to choose the most appropriate font for that greeting. > > ...this seems to be a different criterion for preferred, not the highest > priority as defined above Not a different criterion, it's just that the 'charset' text property overrides the charset priority order (as you'd expect).