develooper Front page | perl.perl6.internals | Postings from August 2002

Possible bug in new string COW code

Thread Next
From:
Peter Gibbs
Date:
August 21, 2002 12:19
Subject:
Possible bug in new string COW code
Message ID:
00f501c24947$7ef227e0$0b01010a@emkel.co.za
Reading through the latest version of string.c, pondering the
best way to integrate the grey and (what colour is cvs parrot?)
versions, I came across the following line in unmake_COW:
        s->buflen = s->strlen;
which got be a little confused - I seem to recall buflen as being
in bytes, and strlen as being in encoding-defined characters.
Did something change when I wasn't looking, or is this a bug
just waiting for somebody to actually implement Unicode?
-- 
Peter Gibbs
EmKel Systems



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About