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

Re: [perl #133101] Anomalies in handling malformed utf8 input

Thread Previous | Thread Next
Dan Book
April 11, 2018 21:35
Re: [perl #133101] Anomalies in handling malformed utf8 input
Message ID:
On Wed, Apr 11, 2018 at 4:52 PM, Dan Book <> wrote:
> Yes. -CAS only sets @ARGV to be interpreted as UTF-8 and :utf8 layers on
> STDIN/STDOUT/STDERR. The source code still needs `use utf8;` to be
> interpreted correctly.
> -Dan

Using the options -CSD (-CD makes the special ARGV handle used by -n open
the passed filename with :utf8, -CS interprets the STDIN with :utf8) and
-Mutf8 (for the source code passed to -e) should make these examples
function as expected.


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