--- games/cowsay/Makefile (revision 419720) +++ games/cowsay/Makefile (working copy) @@ -4,6 +4,7 @@ PORTNAME= cowsay PORTVERSION= 3.04 DISTVERSIONPREFIX= cowsay- +PORTREVISION= 1 CATEGORIES= games MAINTAINER= lifanov@mail.lifanov.com --- games/cowsay/files/patch-cowsay (revision 419720) +++ games/cowsay/files/patch-cowsay (working copy) @@ -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,7 +11,18 @@ use File::Basename; use Getopt::Std; use Cwd; -@@ -185,3 +185,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey + ++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 +192,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey [-l] [-n] [-T tongue] [-W wrapcolumn] [message] EOF }