Re: binary scan and signed characters



Arjen Markus wrote:
My question: is this platform-dependent behaviour? Is it because the
underlying C run-time library regards characters as signed? Or is Tcl
using signed characters and this behaviour is by design?

It's consistently that way, and I think it's because 'i'nts are also
signed, and that was how they had to be back when [binary] was
introduced on 32-bit platforms. 8.5 lets force an unsigned
interpretation with the 'u' flag, documented in TIP #275.

Donal.
.