eseyman pushed to perl-Text-ASCIITable (master). "Apply patch by Petr
Pisar to prevent utf8 failures (#1382015)"
by notifications@fedoraproject.org
From 5afc789c538836176e8ac85ef914681903a12c66 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel(a)seyman.fr>
Date: Sun, 25 Dec 2016 19:10:59 +0100
Subject: Apply patch by Petr Pisar to prevent utf8 failures (#1382015)
---
0001-Remove-utf8-option.patch | 91 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 91 insertions(+)
create mode 100644 0001-Remove-utf8-option.patch
diff --git a/0001-Remove-utf8-option.patch b/0001-Remove-utf8-option.patch
new file mode 100644
index 0000000..a6329c7
--- /dev/null
+++ b/0001-Remove-utf8-option.patch
@@ -0,0 +1,91 @@
+From dcd0d8011eeaf7f74a8f03e3600235303e64f7d7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
+Date: Thu, 22 Dec 2016 13:12:48 +0100
+Subject: [PATCH] Remove utf8 option
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This feature caused test failures since Encode-2.87 because it tried to
+reinterpret input strings as UTF-8 octet stream.
+
+It's application's responsibility to provide input as Unicode strings.
+This how Perl works.
+
+CPAN RT#118483
+
+Signed-off-by: Petr Písař <ppisar(a)redhat.com>
+---
+ lib/Text/ASCIITable.pm | 2 --
+ t/03_options.t | 3 ++-
+ t/13_utf8.t | 5 +++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/lib/Text/ASCIITable.pm b/lib/Text/ASCIITable.pm
+index b630910..c4449e0 100644
+--- a/lib/Text/ASCIITable.pm
++++ b/lib/Text/ASCIITable.pm
+@@ -88,7 +88,6 @@ sub new {
+ $self->{options}{alignHeadRow} = $self->{options}{alignHeadRow} || 'auto'; # default setting
+ $self->{options}{undef_as} = $self->{options}{undef_as} || ''; # default setting
+ $self->{options}{chaining} = $self->{options}{chaining} || 0; # default setting
+- $self->{options}{utf8} = defined($self->{options}{utf8}) ? $self->{options}{utf8} : 1; # default setting
+
+ bless $self;
+
+@@ -884,7 +883,6 @@ sub count {
+ $str =~ s/<.+?>//g if $self->{options}{allowHTML};
+ $str =~ s/\33\[(\d+(;\d+)?)?[musfwhojBCDHRJK]//g if $self->{options}{allowANSI}; # maybe i should only have allowed ESC[#;#m and not things not related to
+ $str =~ s/\33\([0B]//g if $self->{options}{allowANSI}; # color/bold/underline.. But I want to give people as much room as they need.
+- $str = decode("utf8", $str) if $self->{options}{utf8};
+
+ return length($str);
+ }
+diff --git a/t/03_options.t b/t/03_options.t
+index d8ef530..162c286 100644
+--- a/t/03_options.t
++++ b/t/03_options.t
+@@ -2,6 +2,7 @@
+
+ BEGIN { $| = 1; print "1..6\n"; }
+ END {print "not ok 1\n" unless $loaded;}
++use utf8;
+ use Text::ASCIITable;
+ $loaded = 1;
+ print "ok 1\n";
+@@ -9,7 +10,7 @@ $i=2;
+
+ $t = new Text::ASCIITable({ hide_LastLine => 1, hide_HeadLine => 1 });
+ ok($t->setCols(['id','nick','name']));
+-ok($t->addRow('1','Lunatic-|','H�kon Nessj�en'));
++ok($t->addRow('1','Lunatic-|','Håkon Nessjøen'));
+ $t->addRow('2','tesepe','William Viker');
+ $t->addRow('3','espen','Espen Ursin-Holm');
+ $t->addRow('4','bonde','Martin Mikkelsen');
+diff --git a/t/13_utf8.t b/t/13_utf8.t
+index d0ef858..59649f2 100644
+--- a/t/13_utf8.t
++++ b/t/13_utf8.t
+@@ -2,6 +2,7 @@
+
+ BEGIN { $| = 1; print "1..6\n"; }
+ END {print "not ok 1\n" unless $loaded;}
++use utf8;
+ use Text::ASCIITable;
+ $loaded = 1;
+ print "ok 1\n";
+@@ -18,9 +19,9 @@ eval {
+ };
+ if (!$@) {ok(undef)} else {ok(1)}
+ @arr = split(/\n/,$content);
+-ok(length($arr[3]) < length($arr[4])?undef:1);
++ok(length($arr[3]) == length($arr[4])?undef:1);
+ ok(length($arr[3]) == $t->getTableWidth()?undef:1);
+-ok(length($arr[6]) > $t->getTableWidth()?undef:1);
++ok(length($arr[6]) == $t->getTableWidth()?undef:1);
+ if (scalar(@arr) == 8) {ok(undef);} else {ok(1);}
+
+ sub ok{print(defined(shift)?"not ok $i\n":"ok $i\n");$i++;}
+--
+2.7.4
+
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Text-ASCIITable.git/commit/?h=mas...
7 years, 4 months
eseyman pushed to perl-Text-ASCIITable (master). "Apply patch by Petr
Pisar to prevent utf8 failures (#1382015)"
by notifications@fedoraproject.org
From 5011996e812da6b7f1b92ecc0c4a3d5eb2acb8e0 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel(a)seyman.fr>
Date: Sun, 25 Dec 2016 19:14:06 +0100
Subject: Apply patch by Petr Pisar to prevent utf8 failures (#1382015)
---
perl-Text-ASCIITable.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/perl-Text-ASCIITable.spec b/perl-Text-ASCIITable.spec
index 0453437..0bf3b9c 100644
--- a/perl-Text-ASCIITable.spec
+++ b/perl-Text-ASCIITable.spec
@@ -1,11 +1,12 @@
Name: perl-Text-ASCIITable
Version: 0.20
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: Create a nice formatted table using ASCII characters
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-ASCIITable/
Source0: http://www.cpan.org/authors/id/L/LU/LUNATIC/Text-ASCIITable-%{version}.ta...
+Patch0: 0001-Remove-utf8-option.patch
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(Carp)
@@ -22,7 +23,10 @@ human-readable, or "cool" way.
%prep
%setup -q -n Text-ASCIITable-%{version}
-iconv -f latin1 -t utf8 README > README.conv && mv -f README.conv README
+%patch0 -p1
+for i in ansi-example.pl META.yml README t/*; do
+ iconv -f iso8859-1 -t utf-8 $i > $i.conv && mv -f $i.conv $i
+done
%build
perl Build.PL installdirs=vendor
@@ -46,6 +50,9 @@ done
%{_mandir}/man3/*
%changelog
+* Sun Dec 25 2016 Emmanuel Seyman <emmanuel(a)seyman.fr> - 0.20-14
+- Apply patch by Petr Pisar to prevent utf8 failures (#1382015)
+
* Sun May 15 2016 Jitka Plesnikova <jplesnik(a)redhat.com> - 0.20-13
- Perl 5.24 rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Text-ASCIITable.git/commit/?h=mas...
7 years, 4 months
eseyman pushed to perl-Search-Elasticsearch (master). "Update to 5.01"
by notifications@fedoraproject.org
From 5de2b7c74ccb606ba2a9bfc59617f6d60d893f51 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel(a)seyman.fr>
Date: Sun, 25 Dec 2016 16:56:01 +0100
Subject: Update to 5.01
---
.gitignore | 1 +
perl-Search-Elasticsearch.spec | 5 ++++-
sources | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index 006cd82..2a4ad4b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/Search-Elasticsearch-2.00.tar.gz
/Search-Elasticsearch-2.02.tar.gz
/Search-Elasticsearch-2.03.tar.gz
+/Search-Elasticsearch-5.01.tar.gz
diff --git a/perl-Search-Elasticsearch.spec b/perl-Search-Elasticsearch.spec
index a9f4538..a821921 100644
--- a/perl-Search-Elasticsearch.spec
+++ b/perl-Search-Elasticsearch.spec
@@ -1,5 +1,5 @@
Name: perl-Search-Elasticsearch
-Version: 2.03
+Version: 5.01
Release: 1%{?dist}
Summary: Official client for Elasticsearch
License: ASL 2.0
@@ -87,6 +87,9 @@ make test
%{_mandir}/man3/Search*
%changelog
+* Sun Dec 25 2016 Emmanuel Seyman <emmanuel(a)seyman.fr> - 5.01-1
+- Update to 5.01
+
* Tue May 31 2016 Emmanuel Seyman <emmanuel(a)seyman.fr> - 2.03-1
- Update to 2.03
diff --git a/sources b/sources
index 08f2ed8..a17c6b9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-aaeabf3d365582e630dfa4508dfee2d5 Search-Elasticsearch-2.03.tar.gz
+SHA512 (Search-Elasticsearch-5.01.tar.gz) = b89e9263159d647e8a7bd31026e0d15df5bcec1777d895b1eddc8e319ba6b6a3d6ba37eb979e05ee1e702a950a998d414cbb22b0ac66835e705b366b4c0bb62b
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Search-Elasticsearch.git/commit/?...
7 years, 4 months
eseyman pushed to perl-Catalyst-Runtime (master). "Update to 5.90114"
by notifications@fedoraproject.org
From 3bdd4cc544023441b01dc2b167b6fe84f78b8f70 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel(a)seyman.fr>
Date: Sun, 25 Dec 2016 16:49:21 +0100
Subject: Update to 5.90114
---
.gitignore | 1 +
perl-Catalyst-Runtime.spec | 5 ++++-
sources | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index c1d6787..c2e7cbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,4 @@ Catalyst-Runtime-5.80021.tar.gz
/CGI-Emulate-PSGI-0.22.tar.gz
/Catalyst-Runtime-5.90111.tar.gz
/Catalyst-Runtime-5.90112.tar.gz
+/Catalyst-Runtime-5.90114.tar.gz
diff --git a/perl-Catalyst-Runtime.spec b/perl-Catalyst-Runtime.spec
index 56a9d82..0576d72 100644
--- a/perl-Catalyst-Runtime.spec
+++ b/perl-Catalyst-Runtime.spec
@@ -1,6 +1,6 @@
Name: perl-Catalyst-Runtime
Summary: Catalyst Framework Runtime
-Version: 5.90112
+Version: 5.90114
Release: 1%{?dist}
License: GPL+ or Artistic
@@ -183,6 +183,9 @@ make clean
%{_mandir}/man1/*
%changelog
+* Sun Dec 25 2016 Emmanuel Seyman <emmanuel(a)seyman.fr> - 5.90114-1
+- Update to 5.90114
+
* Sun Aug 07 2016 Emmanuel Seyman <emmanuel(a)seyman.fr> - 5.90112-1
- Update to 5.90112
diff --git a/sources b/sources
index 1e5b134..efce446 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e0e8a5cfe69a818fb3d763d47c54b136 Catalyst-Runtime-5.90112.tar.gz
+SHA512 (Catalyst-Runtime-5.90114.tar.gz) = f6b795709aa22f64bcb7f651ad83f84073793d9e699b115070a4cfa62f96e39181a90063bd5829ce8cbef30e7157908697588a5f04b2c7f843e91f26d8afe3b4
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Catalyst-Runtime.git/commit/?h=ma...
7 years, 4 months