develooper Front page | perl.perl5.porters | Postings from April 2008

Re: [perl #53110] Bitops on strings when UTF8 flag is set

Thread Previous
April 22, 2008 20:52
Re: [perl #53110] Bitops on strings when UTF8 flag is set
Message ID:
>>>>> On Wed, 23 Apr 2008 00:12:53 +0000 (UTC), Yitzchak Scott-Thoennes <> said:

  > Andreas J. Koenig writes:
 >> The following example shows that the internal repreesentation can leak
 >> into the bit operations. The program does the same thing twice, namely
 >> $iv ^ $asciistring
 >> but the second time around the $asciistring has the UTF8 flag set.

  > There doesn't appear to a bug here to me.

  > The two results compare as equal,

Sorry, I didn't spot that.

  > and it's reasonable for perl to
  > give a UTF8 result when an operand has UTF8 set.


  > Can you expand on why you think this is a bug?

I have no argument left that this might be wrong. Thanks for looking
into it.


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