From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#4895: 23.1; Incorrect font selected Date: Tue, 10 Nov 2009 10:32:24 +0900 Message-ID: References: Reply-To: Kenichi Handa , 4895@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257817665 14356 80.91.229.12 (10 Nov 2009 01:47:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2009 01:47:45 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: cmr.Pent@gmail.com, 4895@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 10 02:47:37 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N7fpX-0001mR-4v for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Nov 2009 02:47:35 +0100 Original-Received: from localhost ([127.0.0.1]:56117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7fpW-0008Nq-NK for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Nov 2009 20:47:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7fpP-0008KX-1i for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 20:47:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7fpK-0008IA-1K for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 20:47:26 -0500 Original-Received: from [199.232.76.173] (port=54171 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7fpJ-0008I4-Pu for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 20:47:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38967) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7fpJ-0004vD-1G for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 20:47:21 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAA1lI3l020290; Mon, 9 Nov 2009 17:47:18 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAA1e7v9019670; Mon, 9 Nov 2009 17:40:07 -0800 Resent-Date: Mon, 9 Nov 2009 17:40:07 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 10 Nov 2009 01:40:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4895 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4895-submit@emacsbugs.donarmstrong.com id=B4895.125781674919085 (code B ref 4895); Tue, 10 Nov 2009 01:40:07 +0000 Original-Received: (at 4895) by emacsbugs.donarmstrong.com; 10 Nov 2009 01:32:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAA1WQfE019082 for <4895@emacsbugs.donarmstrong.com>; Mon, 9 Nov 2009 17:32:28 -0800 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id nAA1WPBk016657; Tue, 10 Nov 2009 10:32:25 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id nAA1WPsB014987; Tue, 10 Nov 2009 10:32:25 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id nAA1WOJf001601; Tue, 10 Nov 2009 10:32:24 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1N7faq-0001mD-FQ; Tue, 10 Nov 2009 10:32:24 +0900 In-Reply-To: (message from Andrey Paramonov on Mon, 09 Nov 2009 22:19:07 +0300) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 09 Nov 2009 20:47:26 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32503 Archived-At: In article , Andrey Paramonov writes: > 0) emacs -Q > My .Xresources: > emacs*font: DejaVu Sans Mono-11 > 1) C-x C-f titledefs.dtx (attached) > Latin characters are displayed with DejaVu Sans Mono, as expected. > Cyrillic characters are not displayed properly. This is Ok yet, > because the file is encoded in cp1251. > 2) C-x RET r cp1251 RET > yes RET > Latin characters are displayed with DejaVu Sans Mono, as expected. > Cyrillic characters are displayed, but not with DejaVu Sans Mono. > Looks like they are displayed with Terminus. This is because Emacs prefers a font whose registry matches with `charset' text property. In the above case, the default fontset has this entry for cyrillic: (cyrillic ,(font-spec :registry "iso10646-1" :script 'cyrillic) (nil . "ISO8859-5") (nil . "microsoft-cp1251") (nil . "koi8-r")) and when you read a file with cp1251, the charset property `cp1251' is put on the buffer text. Thus the font-selector prefers a font whose registry is "microsoft-cp1251". If you prefer cyrillic characters to be displayed by the default font, you can do this in .emacs: (set-fontset-font "fontset-default" 'cyrillic (font-spec :registry "iso10646-1" :script 'cyrillic)) --- Kenichi Handa handa@m17n.org