sizeof(char) == 1 may yeald false


Subject: sizeof(char) == 1 may yeald false
rms@greymalkin.yi.org
Date: Sat Jun 02 2001 - 20:08:40 CDT


On Sat, Jun 02, 2001 at 08:14:07PM -0400, Dom Lachowicz wrote:
> Quoting Andrew Dunbar <hippietrail@yahoo.com>:
> > Here is my patch to fix the corrupt UT_UCSString.
> > Andrew Dunbar.
> Will someone please commit this? You can also add * sizeof(char_type) to the
> normal UT_StringBuf code too, just for completeness though sizeof(char) will
> == 1

Only when char is not a two byte char.

Do not assume char to be 1 byte ;), for instance, in our friendly oriental chars users' case.

Hugs, rms




This archive was generated by hypermail 2b25 : Sat Jun 02 2001 - 19:26:43 CDT