From xemacs-m  Fri Mar 21 09:47:46 1997
Received: from crystal.WonderWorks.COM (crystal.WonderWorks.com [192.203.206.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA03017
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 09:47:44 -0600 (CST)
Received: by crystal.WonderWorks.COM 
	id QQchvr25027; Fri, 21 Mar 1997 10:47:38 -0500 (EST)
Date: Fri, 21 Mar 1997 10:47:38 -0500 (EST)
Message-Id: <QQchvr25027.199703211547@crystal.WonderWorks.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Kyle Jones <kyle_jones@wonderworks.com>
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: `M-x disassemble' not working?
In-Reply-To: <199703211446.GAA06189@newman>
References: <kighgi6rn6h.fsf@jagor.srce.hr>
	<199703211446.GAA06189@newman>
X-Mailer: VM 6.21 under 19.15 XEmacs Lucid (beta102)
X-Face: /cA45WHG7jWq>(O3&Z57Y<"WsX5ddc,4c#w0F*zrV#=M
        0@~@,s;b,aMtR5Sqs"+nU.z^CSFQ9t`z2>W,S,]:[+2^
        Nbf6v4g>!&,7R4Ot4Wg{&tm=WX7P["9%a)_da48-^tGy
        ,qz]Z,Zz\{E.,]'EO+F)@$KtF&V

William M. Perry writes:
 > Hrvoje Niksic writes:
 > >I find this intolerable -- disassemble doesn't seem to work in XEmacs 20
 > >(compiled with MULE, but I don't think it matters, since the error is in
 > >char<->int troubles).  The trouble spot is using `int-to-string' on
 > >characters in `disassemble-1'.  Simply changing the three occurences of
 > >`int-to-string' to `char-to-string' doesn't help matters, as then you get
 > >things like `call ^A' instead of `call 1', etc.
 > 
 >   What about wrapping it in:
 > 
 > (int-to-string (char-int foo))
 > 
 > instead of just
 > 
 > (int-to-string foo)

It loses because some of the values of foo are already ints.  The
real fix was to normalize the operands in disassemble-offset so
that only ints reached the outside world.  There is no case where
a byte extracted from a bytecode string should be treated as a
character.

