From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: font name not decoded in the output of describe-font Date: Wed, 17 Dec 2008 13:37:58 +0900 Message-ID: <878wqf1knt.fsf@xemacs.org> References: <14448004.281361229177919568.JavaMail.coremail@bj163app29.163.com> <4943F708.9050007@f2s.com> <87y6ygsxyb.fsf@catnip.gol.com> <1229391969.494708614ac3b@webmail.freedom2surf.net> <87y6yg7cus.fsf@xemacs.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229488422 17523 80.91.229.12 (17 Dec 2008 04:33:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 04:33:42 +0000 (UTC) Cc: Kenichi Handa , jasonr@f2s.com, brep@163.com, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 17 05:34:45 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCo7Q-0001NF-05 for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 05:34:44 +0100 Original-Received: from localhost ([127.0.0.1]:55680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCo6E-0003xo-01 for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 23:33:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCo68-0003w4-QP for emacs-devel@gnu.org; Tue, 16 Dec 2008 23:33:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCo65-0003vs-E1 for emacs-devel@gnu.org; Tue, 16 Dec 2008 23:33:23 -0500 Original-Received: from [199.232.76.173] (port=38215 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCo65-0003vp-7U for emacs-devel@gnu.org; Tue, 16 Dec 2008 23:33:21 -0500 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:46351) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCo63-0006PP-0m; Tue, 16 Dec 2008 23:33:19 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 15F2A8210; Wed, 17 Dec 2008 13:33:17 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 7B06E1A2676; Wed, 17 Dec 2008 13:37:59 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106993 Archived-At: Miles Bader writes: > "Stephen J. Turnbull" writes: > > I haven't found a specification that says so myself, but Aidan Kehoe > > says it's clear from the source of fontconfig that it's UTF-8. I > > can't imagine why that would change in the future so it's probably > > safe to assume it (at least for user presentation purposes). > > Anyway, since in practice everything uses utf-8, surely it's better to > assume that until a better solution is found, than returning raw > undecoded font names ? Indeed. The question in my mind is how defensive to be about checking for UTF-8 compatibility. I think it's OK to just decode willy-nilly and let the errors come if they will (because I'm quite sure they won't).