From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#6437: 23.2; Fail to parse GTK font size with decimal point Date: Tue, 22 Jun 2010 08:44:48 +0200 Message-ID: <4C205BE0.8080901@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277190002 15052 80.91.229.12 (22 Jun 2010 07:00:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2010 07:00:02 +0000 (UTC) Cc: 6437@debbugs.gnu.org To: Keith Packard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 22 09:00:01 2010 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.69) (envelope-from ) id 1OQxSh-0002KU-Ui for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jun 2010 09:00:00 +0200 Original-Received: from localhost ([127.0.0.1]:44427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQxSh-0003tf-5a for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jun 2010 02:59:59 -0400 Original-Received: from [140.186.70.92] (port=34253 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQxSb-0003ta-55 for bug-gnu-emacs@gnu.org; Tue, 22 Jun 2010 02:59:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQxSZ-0002ue-GZ for bug-gnu-emacs@gnu.org; Tue, 22 Jun 2010 02:59:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51957) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQxSZ-0002ua-FD for bug-gnu-emacs@gnu.org; Tue, 22 Jun 2010 02:59:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OQxEE-0004I4-L8; Tue, 22 Jun 2010 02:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Jun 2010 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6437 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6437-submit@debbugs.gnu.org id=B6437.127718909516423 (code B ref 6437); Tue, 22 Jun 2010 06:45:02 +0000 Original-Received: (at 6437) by debbugs.gnu.org; 22 Jun 2010 06:44:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQxE6-0004Gq-IZ for submit@debbugs.gnu.org; Tue, 22 Jun 2010 02:44:55 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQxE4-0004Gk-LA for 6437@debbugs.gnu.org; Tue, 22 Jun 2010 02:44:53 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id EE372D6A4 for <6437@debbugs.gnu.org>; Tue, 22 Jun 2010 08:44:48 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsI3AI74H0xV4S0jPGdsb2JhbACHb5cbDAEBAQE1LcBdhRsE X-IronPort-AV: E=Sophos;i="4.53,458,1272837600"; d="scan'208";a="93244799" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 22 Jun 2010 08:44:48 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 4717C7FA05A; Tue, 22 Jun 2010 08:44:48 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 22 Jun 2010 02:45:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:37942 Archived-At: 2010-06-16 10:15, Keith Packard skrev: > > Running emacs-gtk, I have my default font set to 'Monospace 7.5' in > gconf which causes emacs to fail to start with the following error > message: > > $ emacs > Font `Monospace 7.5' is not defined > > > Emacs is mis-parsing the font name, not allowing for the point size > field to contain a decimal point. > > Here's a patch: > > diff --git a/src/font.c b/src/font.c > index 7657121..cdaa16e 100644 > --- a/src/font.c > +++ b/src/font.c > @@ -1544,7 +1544,7 @@ font_parse_fcname (name, font) > int size_found = 1; > > for (q = p + 1; *q&& *q != ' '; q++) > - if (! isdigit (*q)) > + if (! isdigit (*q)&& *q != '.') > { > size_found = 0; > break; > Applied. But on my system it seems I get 7 even if I specify 7.5. I tried a couple of applications, they all behave the same. Jan D.