View | Details | Raw Unified | Return to bug 211614 | Differences between
and this patch

Collapse All | Expand All

(-)games/cowsay/Makefile (+1 lines)
Lines 4-9 Link Here
4
PORTNAME=	cowsay
4
PORTNAME=	cowsay
5
PORTVERSION=	3.04
5
PORTVERSION=	3.04
6
DISTVERSIONPREFIX=	cowsay-
6
DISTVERSIONPREFIX=	cowsay-
7
PORTREVISION=	1
7
CATEGORIES=	games
8
CATEGORIES=	games
8
9
9
MAINTAINER=	lifanov@mail.lifanov.com
10
MAINTAINER=	lifanov@mail.lifanov.com
(-)games/cowsay/files/patch-cowsay (-2 / +13 lines)
Lines 2-8 Link Here
2
2
3
--- cowsay.orig	2016-06-25 02:45:15 UTC
3
--- cowsay.orig	2016-06-25 02:45:15 UTC
4
+++ cowsay
4
+++ cowsay
5
@@ -7,7 +7,7 @@
5
@@ -7,11 +7,18 @@
6
 ##
6
 ##
7
 
7
 
8
 use Text::Tabs qw(expand);
8
 use Text::Tabs qw(expand);
Lines 11-17 Link Here
11
 use File::Basename;
11
 use File::Basename;
12
 use Getopt::Std;
12
 use Getopt::Std;
13
 use Cwd;
13
 use Cwd;
14
@@ -185,3 +185,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey
14
 
15
+if (${^UTF8LOCALE}) {
16
+    binmode STDIN, ':utf8';
17
+    binmode STDOUT, ':utf8';
18
+    require Encode;
19
+    eval { $_ = Encode::decode_utf8($_,1) } for @ARGV;
20
+}
21
+
22
 $version = "3.03";
23
 $progname = basename($0);
24
 $eyes = "oo";
25
@@ -185,3 +192,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey
15
           [-l] [-n] [-T tongue] [-W wrapcolumn] [message]
26
           [-l] [-n] [-T tongue] [-W wrapcolumn] [message]
16
 EOF
27
 EOF
17
 }
28
 }

Return to bug 211614