FreeBSD Bugzilla – Attachment 173346 Details for
Bug 211614
[PATCH] games/cowsay: cowsay doesn't handle UTF8 properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
diff -u of old and new patch-cowsay
patch-cowsay.patch (text/plain), 706 bytes, created by
Aleksander Alekseev
on 2016-08-05 22:39:46 UTC
(
hide
)
Description:
diff -u of old and new patch-cowsay
Filename:
MIME Type:
Creator:
Aleksander Alekseev
Created:
2016-08-05 22:39:46 UTC
Size:
706 bytes
patch
obsolete
>--- files/patch-cowsay.orig 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211614
:
173345
|
173346
|
173347