From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Patrik Jonsson Newsgroups: gmane.emacs.devel Subject: Re: Extra character 194 appearing in network stream Date: Sat, 17 Feb 2007 01:53:06 -0800 Message-ID: <45D6D082.1010502@ucolick.org> References: <45D651F2.6060102@ucolick.org> <45D67B16.7010804@gnu.org> <45D6CB5A.5020402@ucolick.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2037628396==" X-Trace: sea.gmane.org 1171706031 23547 80.91.229.12 (17 Feb 2007 09:53:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Feb 2007 09:53:51 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 17 10:53:44 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HIMGF-00078J-Ot for ged-emacs-devel@m.gmane.org; Sat, 17 Feb 2007 10:53:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIMGF-0005Zd-8b for ged-emacs-devel@m.gmane.org; Sat, 17 Feb 2007 04:53:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HIMFg-0005XM-2l for emacs-devel@gnu.org; Sat, 17 Feb 2007 04:53:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HIMFd-0005Vr-8S for emacs-devel@gnu.org; Sat, 17 Feb 2007 04:53:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIMFc-0005Vg-GK for emacs-devel@gnu.org; Sat, 17 Feb 2007 04:53:04 -0500 Original-Received: from mail.cruzio.com ([63.249.95.37]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HIMFZ-0003ye-Vc; Sat, 17 Feb 2007 04:53:02 -0500 Original-Received: from [192.168.1.110] (dsl2-63-249-107-95.cruzio.com [63.249.107.95]) by mail.cruzio.com with ESMTP id l1H9qwdf012394; Sat, 17 Feb 2007 01:52:58 -0800 (PST) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: X-Enigmail-Version: 0.94.1.0 X-detected-kernel: FreeBSD 4.6-4.9 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:66479 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============2037628396== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6C5ADD9BFFA91BA1F0126C4B" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6C5ADD9BFFA91BA1F0126C4B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Andreas Schwab wrote: > Patrik Jonsson writes: > > =20 >> I tracked the problem down to the piece of code that packed a number >> into a network-order 4-byte string: >> >> (format "%c%c%c%c" >> (lsh (logand i 4278190080) -24) >> (lsh (logand i 16711680) -16) >> (lsh (logand i 65280) -8) >> (logand i 255)) >> >> which when (logand i 255) >127 apparently produces a 5-character strin= g. >> =20 > > I cannot reproduce that. Can you give a specific example? > =20 (string-bytes (let ((i 200)) (format "%c%c%c%c" (lsh (logand i 4278190080) -24) (lsh (logand i 16711680) -16) (lsh (logand i 65280) -8) (logand i 255)))) gives 5 Regards, /Patrik --------------enig6C5ADD9BFFA91BA1F0126C4B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF1tCCT+KvsdUW5p8RApTdAJ99GD9VWQBnh3p+W1ZqbMEDb/jOjwCfbRJV ODVDfCTMDhbcK7RmsnZineA= =jvgy -----END PGP SIGNATURE----- --------------enig6C5ADD9BFFA91BA1F0126C4B-- --===============2037628396== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============2037628396==--