Re: binary scan and signed characters
- From: "Donal K. Fellows" <donal.k.fellows@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 01:20:44 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: binary scan and signed characters
- From: Arjen Markus
- Re: binary scan and signed characters
- References:
- binary scan and signed characters
- From: Arjen Markus
- binary scan and signed characters
- Prev by Date: Re: binary scan and signed characters
- Next by Date: Re: Idea for new ttk Notebook virtual event
- Previous by thread: Re: binary scan and signed characters
- Next by thread: Re: binary scan and signed characters
- Index(es):