From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: What is a preferred charset? Date: Wed, 21 Nov 2018 10:40:42 -0500 Message-ID: References: <87zhu24h0b.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542814799 29758 195.159.176.226 (21 Nov 2018 15:39:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2018 15:39:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 16:39:55 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 1gPUba-0007bt-Vy for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 16:39:55 +0100 Original-Received: from localhost ([::1]:39865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPUdh-0002Vp-DN for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 10:42:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPUcZ-0002MJ-I7 for emacs-devel@gnu.org; Wed, 21 Nov 2018 10:40:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPUcW-0005k9-3m for emacs-devel@gnu.org; Wed, 21 Nov 2018 10:40:55 -0500 Original-Received: from [195.159.176.226] (port=50510 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPUcV-0005iq-PJ for emacs-devel@gnu.org; Wed, 21 Nov 2018 10:40:51 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gPUaM-0006Bs-L5 for emacs-devel@gnu.org; Wed, 21 Nov 2018 16:38:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:7xhd05Vvlugk7HX+JfKyuoRKhc8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:231292 Archived-At: >> The discussion in bug#33445 made me realize that I don't know what >> distinguishes a preferred charset from other charsets > It's the first from (charset-priority-list) that can encode the > character. The priority is defined by the language environment. And IIUC the only impact it has is on the choice of font to display it. For latin chars, this tends to make no difference, but for some Asian scripts it can make a much more significant difference because the same Unicode chars are used for different languages even though they are traditionally rendered differently in those different languages. IOW, I think this `charset` property is used to solve the problems descried at https://en.wikipedia.org/wiki/Han_unification BTW, I see this page mentions the existence of "variation selectors" in Unicode. Is that considered a good solution? Does Emacs support them? Stefan