Front page | perl.perl5.porters |
Postings from March 2007
Re: the utf8 flag
Thread Previous
From:
Dr.Ruud
Date:
March 31, 2007 03:12
Subject:
Re: the utf8 flag
Message ID:
20070331101118.20265.qmail@lists.develooper.com
Marc Lehmann schreef:
> Juerd:
> Perl only supported bytes 0..255 in earlier versiosn, and
> now the perl byte can be up to 64 bits (or maybe a bit less, I
forgot).
Aren't you mixing up bytes and words here?
A byte is a unit of memory addressing. One or more bytes make a word. A
word is a unit of transporting memory data.
> In C, a single byte is a character, even if it happens to have a value
> higher than 255 (although very few compilers allow that, usually, a
> byte is an octet, although it is common on DSPs to have 32 bit bytes).
C chars don't have to be machine bytes. The DSPs you mention don't have
to have 32 bit machine bytes, to be used best with 32 bit C chars.
C has effectively 3 types of char: signed, unsigned and default.
--
Affijn, Ruud
"Gewoon is een tijger."
Thread Previous