Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 66506
Status: rejected
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: holbrook [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.80032
Fixed in: (no value)



Subject: Wide character in print with Unicode::Encoding (Catalyst::Log)
On a fresh Catalyst test application, adding "Unicode::Encoding" to the plugins and then sending UTF-8 characters in a GET (and probably POST) request results in: Wide character in print at /opt/local/lib/perl5/site_perl/5.10.1/Catalyst/Log.pm line 108. The character does seem to print correctly in the "Query parameters" section of the debug output, however. The warning does not come up if debug is turned off.
Subject: Re: [rt.cpan.org #66506] Wide character in print with Unicode::Encoding (Catalyst::Log)
Date: Wed, 16 Mar 2011 21:25:57 -0500
To: bug-Catalyst-Runtime [...] rt.cpan.org
From: Jonathan Rockway <jon [...] jrock.us>
* On Wed, Mar 09 2011, Todd Holbrook via RT wrote: Show quoted text
> Wed Mar 09 15:00:08 2011: Request 66506 was acted upon. > Transaction: Ticket created by HOLBROOK > Queue: Catalyst-Runtime > Subject: Wide character in print with Unicode::Encoding (Catalyst::Log) > Broken in: 5.80032 > Severity: Normal > Owner: Nobody > Requestors: holbrook@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=66506 > > > > On a fresh Catalyst test application, adding "Unicode::Encoding" to the > plugins and then sending UTF-8 characters in a GET (and probably POST) > request results in: > > Wide character in print at > /opt/local/lib/perl5/site_perl/5.10.1/Catalyst/Log.pm line 108. > > The character does seem to print correctly in the "Query parameters" > section of the debug output, however. The warning does not come up if > debug is turned off.
That's a coincidence because your terminal interprets STDOUT/STDERR as streams of UTF-8-encoded characters. But the correct thing to do is explicitly encode characters being printed to the log in Catalyst::Log. -- print just => another => perl => hacker => if $,=$"