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

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

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
January 8, 2001 03:04
Subject:
Re: RV: [PATCH perl@8327] strings with \x{..} in the middle are c orru pted
Message ID:
20010108110425.C32525@plum.flirble.org
On Mon, Jan 08, 2001 at 11:43:39AM +0100, Roca, Ignasi wrote:
> > > print "ok \xFF\x{FF}\n" & "ok 22\n";
> > > 
> > > > and add it to the op/bop.t script ?
> > 
> > Hmmm.  It would seem that even after your patch we still have a bug
> > somewhere in there.  Notice how the last combination produces illegal
> > UTF-8 *sigh*.  <...testing...> It would seem that your patch does not
> > change anything (for the below cases) in an ASCII machine.
> In my opinion the patch should fix somethink like 
> $./perl -Ilib -MDevel::Peek -e 'print Dump("\xFF\xFF\x{FF}")'
> either in ASCII machine. Can anybody try the obove in a ASCII machine
> without the patch to see the result.

x86:

devel 8142:

./perl -Ilib -MDevel::Peek -e 'print Dump("\xFF\xFF\x{FF}")'
SV = PV(0x810b15c) at 0x80fbe98
  REFCNT = 1
  FLAGS = (POK,READONLY,pPOK,UTF8)
  PV = 0x8113278 "\377\377\303\277"\0
  CUR = 4
  LEN = 5



devel 8344:

./perl -Ilib -MDevel::Peek -e 'print Dump("\xFF\xFF\x{FF}")'
SV = PV(0x810ca80) at 0x80f7870
  REFCNT = 1
  FLAGS = (POK,READONLY,pPOK,UTF8)
  PV = 0x8104298 "\303\277\303\277\303\277"\0
  CUR = 6
  LEN = 7


Are those the tests you wanted run?

Nicholas Clark

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