[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libunicode
Followup to: <3D0C3088.E26ED3B@xxxxxxxxxxxx>
By author: Seer <seer26@xxxxxxxxxxxx>
In newsgroup: linux.utf8
>
> Another gripe unicode_char_t should be a signed
> long. unicode leaves 1 bit, which is great for
> things such as error codes, etc (negative numbers).
> Using an unsigned int is not the best idea, I think.
> (int can be longer than long)
>
Not true.
Ideally it should be an int_least32_t as defined in <stdint.h>;
however, int *cannot* be longer than long, and on 64-bit machines int
is typically 32 bits and long is typically 64 bits.
-hpa
--
<hpa@xxxxxxxxxxxxx> at work, <hpa@xxxxxxxxx> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@xxxxxxxxx>
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/