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

Re: “strict” strings?

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
January 6, 2020 22:53
Subject:
Re: “strict” strings?
Message ID:
CAHhgV8h4QnZ0x8z2DZiDDwh0-2apBOp4yJy0pEhNOTciEXDPPA@mail.gmail.com
On Mon, Jan 6, 2020 at 5:06 PM Felipe Gasper <felipe@felipegasper.com> wrote:
> And won’t code that follows `perlunitut`’s prescribed workflow already fit that perfectly well?
>
> undecode()d == binary == !SVfUTF8

This should generally be true, but it is actually legal for it to have
the flag set (as long as it doesn't contain codepoints > 0xFF)

> decode()d == character == SVfUTF8

A decoded string may or may not have the SVfUTF8 flag set. This is not
something you should assume.

Leon

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