From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: oslsachem Newsgroups: gmane.emacs.bugs Subject: bug#8562: Emacs 23.1 and later don't work in windows 98 Date: Fri, 27 May 2011 20:33:33 +0200 Message-ID: References: <83d3k88k6o.fsf@gnu.org> <83wri4kpwb.fsf@gnu.org> <83d3j9e2pn.fsf@gnu.org> <8339k3esws.fsf@gnu.org> <83wrhed91s.fsf@gnu.org> <838vtscbeu.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306522750 9024 80.91.229.12 (27 May 2011 18:59:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 18:59:10 +0000 (UTC) Cc: 8562@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 27 20:59:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QQ2FW-0005Dl-59 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 May 2011 20:59:06 +0200 Original-Received: from localhost ([::1]:52437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ2FV-0008T1-S3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 May 2011 14:59:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ2FT-0008Sv-86 for bug-gnu-emacs@gnu.org; Fri, 27 May 2011 14:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQ2FS-0005MV-9e for bug-gnu-emacs@gnu.org; Fri, 27 May 2011 14:59:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ2FS-0005MR-3L for bug-gnu-emacs@gnu.org; Fri, 27 May 2011 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QQ2FR-0006Xe-Me; Fri, 27 May 2011 14:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: oslsachem Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 May 2011 18:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8562 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 8562-submit@debbugs.gnu.org id=B8562.130652268925085 (code B ref 8562); Fri, 27 May 2011 18:59:01 +0000 Original-Received: (at 8562) by debbugs.gnu.org; 27 May 2011 18:58:09 +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 1QQ2Ea-0006WY-Tv for submit@debbugs.gnu.org; Fri, 27 May 2011 14:58:09 -0400 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQ2EZ-0006WB-3B for 8562@debbugs.gnu.org; Fri, 27 May 2011 14:58:07 -0400 Original-Received: by fxm15 with SMTP id 15so1502089fxm.3 for <8562@debbugs.gnu.org>; Fri, 27 May 2011 11:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=owpvNAQxs6dTLYZ3C2P6p8SeSlyKwNabEpwpE7wwgrU=; b=xZPL5mIwRe89Bf1/h0V635RozMjlHV7trNf0bwS+36DzPmMRSyo1UvX7g9YXpVHP8p sQ6dJII0Ndo7cRfANm0M27ELMqDNYkAci8kENFWhvjFDbrcqp69zBrNmWkdmslpQqQmN UQrZ3ivpkx7+G7nX0aumK9+fh98kYylJ4wtvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=tjxsbGDj//dzfzrRQMCPg7CCBRER8CCNXmBkbSGOWbrHbU4W/X8tMvu3+DlqyjRm38 f7h/+KxDyF70ewJqYHJwqTxr3gVdZIEONP2T0xuM8W2P/ubTwzjGH5Bkz8pIvJGxdvjE cMrxRI69nSIqO/xBjfoPV0rO3wslAaVaqlwpw= Original-Received: by 10.223.74.83 with SMTP id t19mr143275faj.149.1306521213612; Fri, 27 May 2011 11:33:33 -0700 (PDT) Original-Received: by 10.223.70.138 with HTTP; Fri, 27 May 2011 11:33:33 -0700 (PDT) In-Reply-To: <838vtscbeu.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 27 May 2011 14:59:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46742 Archived-At: > So I think we found the culprit, the question is how to make this > work. =A0But first let's make sure the call to GetTextMetricsW indeed > fails. =A0Please change this code in w32font_open_internal: > > =A0len =3D GetOutlineTextMetricsW (dc, 0, NULL); > =A0if (len) > =A0 =A0{ > =A0 =A0 =A0metrics =3D (OUTLINETEXTMETRICW *) alloca (len); > =A0 =A0 =A0if (GetOutlineTextMetricsW (dc, len, metrics)) > =A0 =A0 =A0 =A0bcopy (&metrics->otmTextMetrics, &w32_font->metrics, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 sizeof (TEXTMETRICW)); > =A0 =A0 =A0else > =A0 =A0 =A0 =A0metrics =3D NULL; > =A0 =A0} > > =A0if (!metrics) > =A0 =A0GetTextMetricsW (dc, &w32_font->metrics); > > to say this instead: > > =A0unsigned e; > =A0... > =A0len =3D GetOutlineTextMetricsW (dc, 0, NULL); > =A0if (len) > =A0 =A0{ > =A0 =A0 =A0metrics =3D (OUTLINETEXTMETRICW *) alloca (len); > =A0 =A0 =A0if (GetOutlineTextMetricsW (dc, len, metrics)) > =A0 =A0 =A0 =A0bcopy (&metrics->otmTextMetrics, &w32_font->metrics, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 sizeof (TEXTMETRICW)); > =A0 =A0 =A0else > =A0 =A0 =A0 =A0metrics =3D NULL; > =A0 =A0} > =A0else > =A0 =A0e =3D GetLastError (); > > =A0if (!metrics) > =A0 =A0{ > =A0 =A0 =A0if (!GetTextMetricsW (dc, &w32_font->metrics)) > =A0 =A0 =A0 =A0e =3D GetLastError (); > =A0 =A0} > > Then compile, step through the code again, and tell what value gets > assigned to e. http://www.speedyshare.com/files/28673968/Emacs-23.3GDBprintE.txt Greetings, Osl