develooper Front page | perl.perl5.porters | Postings from August 2010

Re: [PATCH] Re: [perl #45549] warn() misunderstands UTF8-encoded scalar

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
August 8, 2010 18:30
Subject:
Re: [PATCH] Re: [perl #45549] warn() misunderstands UTF8-encoded scalar
Message ID:
864129CD-EB8D-4663-A63F-ECD202A52394@cpan.org

On Aug 8, 2010, at 2:31 PM, Father Chrysostomos wrote:

> The first patch changes warn.t to use test.pl, so I can use fresh_perl_like.
> 
> The second patch fixes warn to work with utf8 scalars and :utf8 handles. Since do_print already takes care of utf8, I’ve changed write_to_stderr to call it.

That makes ‘warn chr 300’ produce a ‘Wide character in print’ warning on a byte-sized handle, which is a good thing, except that it should say ‘warn’. Patch attached.

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