Subject: | console trace "Wide character in print" |
DBIx::Class::Storage::Statistics::print generates the warning "Wide character in print at …/IO/Handle.pm line 417." when debugging with DBIC_TRACE=1 DBIC_TRACE_PROFILE=console and there's Unicode text in the SQL query.
The message is passed through print unencoded, which is wrong. Adding `use Encode::Locale; binmode $self->debugfh, ':encoding(console_out)';` to this method works for me, but certainly you'll know a more appropriate place to add the encoding layer, e.g. when the handle is created.