<div xmlns="http://www.w3.org/1999/xhtml">ссылка по теме: <a href="https://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default">https://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default</a></div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">возможно пригодится</div><div><br /></div><div><br /></div><div>07.10.2018, 10:57, "Alex Povolotsky via Moscow-pm" <moscow-pm@pm.org>:</div><blockquote type="cite">
<div text="#000000" bgcolor="#FFFFFF">
<p>По итогам:</p>
<p>use utf8::all;</p>
<p>binmode STDERR;</p>
<p>Для вывода в stderr дают нормальную работу.</p>
<p>То, что пишется в файлы, видимым образом не страдает<br />
</p>
<br />
<div>06.10.2018 17:33, Ксения Боброва пишет:<br />
</div>
<blockquote type="cite" cite="mid:CAO_8yzcCpP1u2VYPLSe9OqW5Tu2Qb7GTfreBJZvxvC5k48-8aA@mail.gmail.com">
<div dir="ltr">А куда он пишет, в STDERR или STDOUT?
<div><br />
</div>
<div>Не пробовали <span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">binmode</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">(</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">STDERR</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">,</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">
</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(125,39,39);">":utf8"</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">)
и </span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">binmode</span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">(</span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">STDOUT</span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">,</span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);"> </span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(125,39,39);">":utf8"</span><span style="font-family:inherit;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;background-color:rgb(239,240,241);margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54);">)
?</span></div>
</div>
<br />
<div>
<div dir="ltr">сб, 6 окт. 2018 г. в 15:45, Alex Povolotsky via
Moscow-pm <<a href="mailto:moscow-pm@pm.org" moz-do-not-send="true">moscow-pm@pm.org</a>>:<br />
</div>
<blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex;">Добрый день<br />
<br />
Обнаружил, что Mojo::Log у меня не пишет русские буквы<br />
<br />
<br />
=== cut mojolog ===<br />
<br />
#!/usr/bin/env perl<br />
use strict;<br />
use utf8;<br />
use Mojo::Log;<br />
my $log = new Mojo::Log;<br />
print "Просто принт\n";<br />
$log->info('тест лога');<br />
=== cut mojolog ===<br />
<br />
% perl mojolog<br />
Просто принт<br />
[Sat Oct 6 15:22:43 2018] [info] ÑеÑÑ Ð»Ð¾Ð³Ð°<br />
<br />
В попытках разобраться, обнаружил, что на трех других серверах
этот <br />
скрипт работает адекватно.<br />
<br />
Версия ОС везде FreeBSD 11.1 или 11.2. Perl 5.26. Mojolicous
8.00 или <br />
7.88. LANG везде ru_RU.UTF-8.<br />
<br />
Что это может быть? Попробовал на проблемной машине обновить
перл, <br />
пересобрал все модули с бинарниками, эффекта никакого.<br />
<br />
--<br />
<br />
Alex<br />
-- <br />
Moscow.pm mailing list<br />
<a href="mailto:moscow-pm@pm.org" target="_blank" moz-do-not-send="true">moscow-pm@pm.org</a> | <a href="http://moscow.pm.org/" rel="noreferrer" target="_blank" moz-do-not-send="true">http://moscow.pm.org</a><br />
</blockquote>
</div>
<br clear="all" />
<div><br />
</div>
-- <br />
<div dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Ksenia Bobrova</div>
<br />
</div>
</div>
</div>
</div>
</blockquote>
<br />
</div>
,<span>-- <br />Moscow.pm mailing list<br /><a href="mailto:moscow-pm@pm.org">moscow-pm@pm.org</a> | <a href="http://moscow.pm.org/">http://moscow.pm.org</a><br /></span></blockquote>