From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jhd Newsgroups: gmane.emacs.devel Subject: Re: Bad Protocol request 77 Date: Fri, 1 Jul 2005 12:05:57 +0200 Message-ID: <0169E5CE-9890-4858-A170-7D3A0EFCBF7C@swipnet.se> References: <87fyv1d84x.fsf-monnier+emacs@gnu.org> <8DCDF4A8-1124-4F34-8C44-68BD7A647A31@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1120215341 4666 80.91.229.2 (1 Jul 2005 10:55:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2005 10:55:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 01 12:55:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DoJBH-00037P-JS for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2005 12:55:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DoJJh-0006hL-CA for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2005 07:04:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DoIx4-0000Co-43 for emacs-devel@gnu.org; Fri, 01 Jul 2005 06:40:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DoIx0-0000BM-VC for emacs-devel@gnu.org; Fri, 01 Jul 2005 06:40:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DoItj-0007Xu-A6 for emacs-devel@gnu.org; Fri, 01 Jul 2005 06:37:27 -0400 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DoIUh-0008Gr-GM for emacs-devel@gnu.org; Fri, 01 Jul 2005 06:11:35 -0400 Original-Received: from coolsville.localdomain ([83.226.180.210] [83.226.180.210]) by mxfep02.bredband.com with ESMTP id <20050701100619.RYEJ12835.mxfep02.bredband.com@coolsville.localdomain>; Fri, 1 Jul 2005 12:06:19 +0200 In-Reply-To: Original-To: Stefan Monnier X-Mailer: Apple Mail (2.730) 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:40025 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40025 > >> Can you print out the error string (error parameter to =20 >> x_error_handler)? >> 77 is just XDrawImageString16 which is in the second backtrace as =20= >> expected. >> But it can generate different errors. I think it is a BadMatch, =20 >> which >> usually indicates bad input to XDrawImageString16. You should be =20= >> able to >> walk up to the stack frame that calls XDrawImageString16 and examine >> the input. >> > > It's indeed a BadMatch, but I don't know what part of the input =20 > would be > interesting to examine or what legitimate values should look like, As you had a recipe for reproducing this, it is probably the =9C =20 character that is either miscoded in the string argument (the =20 penultimate argument, an XChar2b *) or it is missing in the font used =20= for bold. If you can print the values in the XChar2b* (the last =20 argument to XDrawImageString16 specifies the length in characters, =20 i.e. bytes/2) and use xfd to inspect the font used, you should be =20 able to tell if all characters in the XChar2b* are present in the font. Jan D.