From unknown Mon Jun 23 20:19:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6437: 23.2; Fail to parse GTK font size with decimal point Resent-From: Keith Packard Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jun 2010 12:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6437 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6437@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127669225921712 (code B ref -1); Wed, 16 Jun 2010 12:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2010 12:44:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOryc-0005e9-5S for submit@debbugs.gnu.org; Wed, 16 Jun 2010 08:44:19 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOnmm-000340-Ap for submit@debbugs.gnu.org; Wed, 16 Jun 2010 04:15:49 -0400 Received: from lists.gnu.org ([199.232.76.165]:43304) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OOnmj-00008R-9I for submit@debbugs.gnu.org; Wed, 16 Jun 2010 04:15:45 -0400 Received: from [140.186.70.92] (port=47290 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOnmf-0001ao-0R for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2010 04:15:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_MIME_NO_TEXT, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOnmZ-0002Gw-Gv for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2010 04:15:40 -0400 Received: from home.keithp.com ([63.227.221.253]:33529 helo=keithp.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOnmZ-0002Dr-1X for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2010 04:15:35 -0400 Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 116B37601FA for ; Wed, 16 Jun 2010 01:15:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IFlYSNU085qz for ; Wed, 16 Jun 2010 01:15:26 -0700 (PDT) Received: by keithp.com (Postfix, from userid 1033) id D8FC77601FF; Wed, 16 Jun 2010 01:15:26 -0700 (PDT) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id D3F4B7601FA for ; Wed, 16 Jun 2010 01:15:26 -0700 (PDT) Received: by koto.keithp.com (Postfix, from userid 1488) id 7B330158962; Wed, 16 Jun 2010 01:15:26 -0700 (PDT) From: Keith Packard User-Agent: Notmuch/0.3.1-16-g417274d (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Wed, 16 Jun 2010 01:15:23 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Wed, 16 Jun 2010 08:44:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --=-=-= 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; In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-16 on aiko, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10899901 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t Recent messages: Loading /etc/emacs/site-start.d/50git-core.el (source)...done Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done Loading /etc/emacs/site-start.d/50lilypond-data.el (source)...done Loading /etc/emacs/site-start.d/50mgp.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el-snapshot.el (source)...done Connection file "/tmp/emacs1488/server" deleted For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs23/site-lisp/flim/sha1 hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/sha1 /usr/share/emacs23/site-lisp/flim/hex-util hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/hex-util /usr/share/emacs23/site-lisp/flim/md4 hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/md4 /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/textmodes/ispell /usr/share/emacs23/site-lisp/flim/sasl-ntlm hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/sasl-ntlm /usr/share/emacs23/site-lisp/flim/hmac-def hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/hmac-def /usr/share/emacs23/site-lisp/flim/sasl-digest hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/sasl-digest /usr/share/emacs23/site-lisp/flim/hmac-md5 hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/hmac-md5 /usr/share/emacs23/site-lisp/flim/sasl hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/sasl /usr/share/emacs23/site-lisp/flim/sasl-cram hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/sasl-cram /usr/share/emacs23/site-lisp/flim/ntlm hides /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/net/ntlm /usr/share/emacs/23.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /local/src/debian/emacs23-23.2+1/debian/build-x/lisp/textmodes/rst hides /usr/share/emacs/site-lisp/rst /local/src/debian/emacs23-23.2+1/debian/build-x/leim/leim-list hides /usr/share/emacs/23.2/leim/leim-list Features: (shadow sort flyspell ispell mail-extr emacsbug uniquify bbdb-com advice help-fns advice-preload bbdb timezone notmuch notmuch-message notmuch-maildir-fcc notmuch-hello notmuch-show notmuch-mua notmuch-address notmuch-wash diff-mode easy-mmode coolj notmuch-query json notmuch-lib message sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec mailabbrev nnheader gmm-utils wid-edit mailheader canlock sha1 sha1-el hex-util hashcash mail-utils mm-view smime password-cache dig mm-decode gnus-util netrc mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mm-util time-date mail-prsvr cl cl-19 server w3m-load devhelp bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Transfer-Encoding: quoted-printable =2D-=20 keith.packard@intel.com --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFMGIgbQp8BWwlsTdMRAq0wAKClluQ00BrovvvoCNfZPr+Cr9IdrQCg4J0e mN1oNRTS8E7PyHfKqCvlIbs= =o4UU -----END PGP SIGNATURE----- --==-=-=-- --=-=-=-- From unknown Mon Jun 23 20:19:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6437: 23.2; Fail to parse GTK font size with decimal point 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: To: Keith Packard Cc: 6437@debbugs.gnu.org Received: via spool by 6437-submit@debbugs.gnu.org id=B6437.127718909516423 (code B ref 6437); Tue, 22 Jun 2010 06:45:02 +0000 Received: (at 6437) by debbugs.gnu.org; 22 Jun 2010 06:44:55 +0000 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 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 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" 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 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) Message-ID: <4C205BE0.8080901@swipnet.se> Date: Tue, 22 Jun 2010 08:44:48 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 21 16:42:23 2011 Received: (at control) by debbugs.gnu.org; 21 Sep 2011 20:42:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6Tcc-0006uJ-4g for submit@debbugs.gnu.org; Wed, 21 Sep 2011 16:42:23 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6TcZ-0006uB-Ml for control@debbugs.gnu.org; Wed, 21 Sep 2011 16:42:20 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R6TcD-0006IX-5R for control@debbugs.gnu.org; Wed, 21 Sep 2011 22:41:57 +0200 Date: Wed, 21 Sep 2011 22:38:30 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #6437 X-MailScanner-ID: 1R6TcD-0006IX-5R X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1317242517.23965@4uUWbh+/HuL8jB/E+CPYuQ X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 6437 fixed close 6437 24.1 From unknown Mon Jun 23 20:19:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6437: 23.2; Fail to parse GTK font size with decimal point Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2011 20:44: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: fixed To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Keith Packard , 6437@debbugs.gnu.org Received: via spool by 6437-submit@debbugs.gnu.org id=B6437.131663779226722 (code B ref 6437); Wed, 21 Sep 2011 20:44:02 +0000 Received: (at 6437) by debbugs.gnu.org; 21 Sep 2011 20:43:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6TdQ-0006wx-C6 for submit@debbugs.gnu.org; Wed, 21 Sep 2011 16:43:12 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6TdH-0006vd-K6 for 6437@debbugs.gnu.org; Wed, 21 Sep 2011 16:43:07 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R6Tct-0006Jc-Mk; Wed, 21 Sep 2011 22:42:39 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: <4C205BE0.8080901@swipnet.se> ("Jan \=\?iso-8859-1\?Q\?Dj\=E4rv\=22\?\= \=\?iso-8859-1\?Q\?'s\?\= message of "Tue, 22 Jun 2010 08:44:48 +0200") Date: Wed, 21 Sep 2011 22:38:27 +0200 Message-ID: References: <4C205BE0.8080901@swipnet.se> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Oneohtrix Point Never's _Returnal_: "Stress Waves" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: 1R6Tct-0006Jc-Mk X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1317242559.851@RisKv2OZhBfcFC+ZGIs3Kg X-Spam-Status: No X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Jan Dj=E4rv writes: >> 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: [...] > 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. But apparently the patch fixed the bug on the original reporter's system? There was no followup here, so I'm closing the bug report, but if it turns out that this is still a problem, please reopen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/