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

Re: [PATCH perl@8327] strings with \x{..} in the middle are corru pted

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
January 5, 2001 05:40
Subject:
Re: [PATCH perl@8327] strings with \x{..} in the middle are corru pted
Message ID:
20010105074028.G8075@chaos.wustl.edu
> > Yes, it seems that the code once again assumed ASCII encoding, the raw
> > & 0x80 tells us that.  I actually already had changed that to be
> > abstracted behind a macro, UTF8_IS_CONTINUED().  Next we'll need to
> > define these macros in EBCDIC correctly (mapping to ASCII and back).
> > Simon Cozens already had some patches to this effect a few weeks back,
> > I'll go dig.
> > 
> Yes I'm working on an EBCDIC environment.
> In any case function uv_to_utf8 adds a NULL character at the end of the
> destination buffer and as it is handling the string backwards, last
> character will be overwritten. 
> So I thing that my patch should be applied.

Yes, that's true.

> > > > would fail for me?
> > > > 
> > > > BTW, the patch arrived here line-wrapped. I fixed that manually and
> > > > applied with -l. Maybe you should resubmit as an attachment and
> > > > include your perl -V.

-- 
$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