--- files/patch-cowsay 2016-08-06 01:11:06.352608000 +0300 +++ files/patch-cowsay 2016-08-06 01:28:24.998882000 +0300 @@ -2,7 +2,7 @@ --- cowsay.orig 2016-06-25 02:45:15 UTC +++ cowsay -@@ -7,7 +7,7 @@ +@@ -7,11 +7,18 @@ ## use Text::Tabs qw(expand); @@ -11,6 +11,17 @@ use File::Basename; use Getopt::Std; use Cwd; + ++if (${^UTF8LOCALE}) { ++ binmode STDIN, ':utf8'; ++ binmode STDOUT, ':utf8'; ++ require Encode; ++ eval { $_ = Encode::decode_utf8($_,1) } for @ARGV; ++} ++ + $version = "3.03"; + $progname = basename($0); + $eyes = "oo"; @@ -185,3 +185,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey [-l] [-n] [-T tongue] [-W wrapcolumn] [message] EOF