AnyEvent::Log UTF8 strings to terminal?
Felipe Gasper
felipe at felipegasper.com
Mon May 5 14:08:06 CEST 2025
Omitting `use utf8` is one way to solve your problem.
FWIW I maintain that that pragma causes more trouble than it solves. Here’s a presentation I did that touches on this: https://www.youtube.com/watch?v=yH5IyYyvWHU&pp=ygUSZmVsaXBlIGdhc3BlciBwZXJs
-FG
> On May 5, 2025, at 5:14 AM, Mark Lawrence <mark at rekudos.net> wrote:
>
> This is sort of what I am trying to do:
>
> use strict;
> use warnings;
> use utf8;
> use AE;
>
> BEGIN {
> $ENV{PERL_ANYEVENT_LOG} = 'filter=trace:log=file=/dev/pts/5';
> }
>
> AE::log error => '⣿';
>
> And this is the error I'm getting:
>
> 2025-05-05 11:10:54.000000 +0200 info AnyEvent::IO: Autoloaded IO model 'Perl', using it.
> Wide character in syswrite at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent/IO/Perl.pm line 62.
>
> Is there a) a better way to send log output to a terminal and/or b) some way to binmode the aio filehandle?
>
> --
> Mark Lawrence
>
> _______________________________________________
> anyevent mailing list
> anyevent at lists.schmorp.de
> http://lists.schmorp.de/mailman/listinfo/anyevent
More information about the anyevent
mailing list