develooper Front page | perl.perl5.porters | Postings from July 2017

Re: RFC: deprecate implicit-encoding "Wide character in print"behaviour

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
July 22, 2017 04:54
Subject:
Re: RFC: deprecate implicit-encoding "Wide character in print"behaviour
Message ID:
20170722045419.5808.qmail@lists-nntp.develooper.com
Zefram wrote:
> Currently, when an attempt is made to print a non-Latin-1 character to
> a byte-oriented stream, the entire string containing that character
> is output nevertheless, implicitly UTF-8 encoded.  I think we should
> deprecate this behaviour, ultimately making this situation signal an
> exception.

I am opposed.  I write one-liners *all the time* and frequently get the
Wide Character warnings, but I am glad that perl just goes ahead and
spits out what I want it to spit out (with a warning, which I ignore).

For real programs, you get an annoying warning, which should be enough
of a red flag.  It is a default warning for a reason.

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