develooper Front page | perl.perl5.porters | Postings from January 2001

Re: One more patch for UTF8

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
January 9, 2001 07:17
Subject:
Re: One more patch for UTF8
Message ID:
20010109091741.U6541@chaos.wustl.edu
On Tue, Jan 09, 2001 at 01:04:32AM +0900, Inaba Hiroto wrote:
> Attached is an UTF8 patch for perl@8342.

Okay, now it is applied.

> It does followings.
> 
> Fixes `x' (pp_repeat) bug for UTF8. (pp.c)

Can you give a test for this fix?

> `uv_to_utf8' does not do string termination.(utf8.c)
> (needed to use OPpTRANS_GROWS flag in doop.c)

Well, I once added the string termination to uv_to_utf8().  Not just
that I feel that strongly about it, mainly it was just paranoia about
non-terminated strings.  Maybe we could add "= { 0 }" to all the utf8
temp buffers (which should be all of size UTF8_MAXLEN + 1).

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | 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