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

Re: One more patch for UTF8

Thread Previous | Thread Next
Jarkko Hietaniemi
January 9, 2001 07:17
Re: One more patch for UTF8
Message ID:
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++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About