At 11:51 AM +0100 1/11/03, Leopold Toetsch wrote:
I'd rather not count on that. The default might me multibyte for some folks building parrot.Brent Dax wrote:Steve Fink: # - memcpy(targ, ret->strstart, ret->bufused); # - targ[ret->bufused + 1] = '\0'; # + memcpy(targ, ret->strstart, ret->strlen); # + targ[ret->strlen] = '\0'; I could be wrong, but isn't strlen the length in characters rather than the length in bytes?
Yep. But as the string is trans_coded to the default encoding, it doesn't matter. The default encoding is singlebyte.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk