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

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

Thread Previous
From:
Rafael Garcia-Suarez
Date:
September 16, 2010 05:16
Subject:
Re: [PATCH] Re: [perl #45549] warn() misunderstands UTF8-encoded scalar
Message ID:
AANLkTinA8R2-VWDQE8DaTTDfCxJpMk-WVJRVq7LvVkY6@mail.gmail.com
On 9 August 2010 03:30, Father Chrysostomos <sprout@cpan.org> wrote:
>
> 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.
>

Thanks, all 3 patches applied to bleadperl.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About