[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extra character 194 appearing in network stream
From: |
Andreas Schwab |
Subject: |
Re: Extra character 194 appearing in network stream |
Date: |
Sat, 17 Feb 2007 10:47:43 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
Patrik Jonsson <address@hidden> writes:
> 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 string.
I cannot reproduce that. Can you give a specific example?
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."