Hello community, here is the log from the commit of package perl-Text-Unidecode for openSUSE:Factory checked in at 2015-04-23 07:55:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Text-Unidecode (Old) and /work/SRC/openSUSE:Factory/.perl-Text-Unidecode.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Text-Unidecode" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Text-Unidecode/perl-Text-Unidecode.changes 2014-12-10 23:43:54.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Text-Unidecode.new/perl-Text-Unidecode.changes 2015-04-23 07:55:24.000000000 +0200 @@ -1,0 +2,6 @@ +Sat Apr 18 07:56:18 UTC 2015 - co...@suse.com + +- updated to 1.23 + see /usr/share/doc/packages/perl-Text-Unidecode/ChangeLog + +------------------------------------------------------------------- Old: ---- Text-Unidecode-1.22.tar.gz New: ---- Text-Unidecode-1.23.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Text-Unidecode.spec ++++++ --- /var/tmp/diff_new_pack.UrIAUZ/_old 2015-04-23 07:55:25.000000000 +0200 +++ /var/tmp/diff_new_pack.UrIAUZ/_new 2015-04-23 07:55:25.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Text-Unidecode # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,15 @@ Name: perl-Text-Unidecode -Version: 1.22 +Version: 1.23 Release: 0 %define cpan_name Text-Unidecode -Summary: Provide plain ASCII transliterations of Unicode text +Summary: Plain Ascii Transliterations of Unicode Text License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Text-Unidecode/ -Source: http://www.cpan.org/authors/id/S/SB/SBURKE/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/S/SB/SBURKE/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -49,7 +50,7 @@ NOTE: To make sure your perldoc/Pod viewing setup for viewing this page is -working: The six-letter word "r�sum�" should look like "resume" with an "/" +working: The six-letter word "résumé" should look like "resume" with an "/" accent on each "e". For further tests, and help if that doesn't work, see below, the /A POD ++++++ Text-Unidecode-1.22.tar.gz -> Text-Unidecode-1.23.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Unidecode-1.22/ChangeLog new/Text-Unidecode-1.23/ChangeLog --- old/Text-Unidecode-1.22/ChangeLog 2014-08-15 13:22:24.000000000 +0200 +++ new/Text-Unidecode-1.23/ChangeLog 2014-12-07 13:40:09.000000000 +0100 @@ -1,9 +1,29 @@ -*-coding:utf-8;fill-column:79-*- ············································ - Last Modified Time-stamp: "2014-08-15 04:32:57 MDT sbu...@cpan.org" + Last Modified Time-stamp: "2014-12-07 05:39:39 MST sbu...@cpan.org" #============================================================================== Revision history for Perl module Text::Unidecode +2014-12-07 Sean M. Burke sbu...@cpan.org + * RELEASE 1.23. Just a bugfix version. + * The bug in question: https://rt.cpan.org/Ticket/Display.html?id=97456 + * Thank you very much to superstar Dagfinn Ilmari Mannsaker for noting + it first *and* for providing a patch for a problem that would baffle + me completely: + "On perls 5.8.8 through 5.12.x, regex matches against UTF-16 + surrogate characters emits a fatal "Malformed UTF-8 character" + warning if warnings are enabled. ExtUtils::MakeMaker prior to 6.78 + runs the test suite with -w, causing the installation to fail. + The attached patch [which I applied -SMB] disables utf8 + warnings while doing the regex substitution and converting the + character number to a character in the test." + And thank you very much to Ricardo Signes and Tim Bunce for reminding + me to actually release this thang! I was stupid and forgot... for + several MONTHS. + * Doc: Adding mention of Tom Christiansen's "Perl Unicode Cookbook": + http://www.perl.com/pub/2012/04/perlunicook-standard-preamble.html + * Doc: Adding a suggestion of "use utf8;" in German example. + 2014-08-15 Sean M. Burke sbu...@cpan.org * RELEASE 1.22. (The dev release works, so this is a version bump.) * See notes for 2014-07-25, because this is the first public release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Unidecode-1.22/META.json new/Text-Unidecode-1.23/META.json --- old/Text-Unidecode-1.22/META.json 2014-08-15 13:22:14.000000000 +0200 +++ new/Text-Unidecode-1.23/META.json 2014-12-07 13:39:59.000000000 +0100 @@ -37,5 +37,5 @@ } }, "release_status" : "stable", - "version" : "1.22" + "version" : "1.23" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Unidecode-1.22/META.yml new/Text-Unidecode-1.23/META.yml --- old/Text-Unidecode-1.22/META.yml 2014-08-15 13:22:14.000000000 +0200 +++ new/Text-Unidecode-1.23/META.yml 2014-12-07 13:39:59.000000000 +0100 @@ -19,4 +19,4 @@ - inc requires: perl: 5.008 -version: 1.22 +version: 1.23 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Unidecode-1.22/TODO.txt new/Text-Unidecode-1.23/TODO.txt --- old/Text-Unidecode-1.22/TODO.txt 2014-08-15 13:15:24.000000000 +0200 +++ new/Text-Unidecode-1.23/TODO.txt 2014-11-11 01:30:04.000000000 +0100 @@ -1,9 +1,13 @@ # -*-coding:utf-8;-*- ·················································· -# Last Modified Time-stamp: "2014-07-22 16:51:49 MDT sbu...@cpan.org" +# Last Modified Time-stamp: "2014-11-10 17:30:04 MST sbu...@cpan.org" #====================================================================== ~~ Text::Unidecode TODO file ~~ +TODO GTD: +Keep plugging in suggestions from Tomaž Šolc's message + + TODO: Figure out how to courteously declare dependencies in my Makefile.PL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Unidecode-1.22/lib/Text/Unidecode.pm new/Text-Unidecode-1.23/lib/Text/Unidecode.pm --- old/Text-Unidecode-1.22/lib/Text/Unidecode.pm 2014-08-15 12:23:21.000000000 +0200 +++ new/Text-Unidecode-1.23/lib/Text/Unidecode.pm 2014-12-07 13:15:04.000000000 +0100 @@ -2,12 +2,12 @@ require 5; use 5.8.0; -package Text::Unidecode; # Time-stamp: "2014-08-15 04:23:21 MDT sbu...@cpan.org" +package Text::Unidecode; # Time-stamp: "2014-12-07 05:15:04 MST sbu...@cpan.org" use utf8; use strict; use integer; # vroom vroom! use vars qw($VERSION @ISA @EXPORT @Char $UNKNOWN $NULLMAP $TABLE_SIZE); -$VERSION = '1.22'; +$VERSION = '1.23'; require Exporter; @ISA = ('Exporter'); @EXPORT = ('unidecode'); @@ -44,6 +44,12 @@ foreach my $n (@_) { next unless defined $n; + + # Shut up potentially fatal warnings about UTF-16 surrogate + # characters when running under perl -w + # This is per https://rt.cpan.org/Ticket/Display.html?id=97456 + no warnings 'utf8'; + $n =~ s~([^\x00-\x7f])~${$Char[ord($1)>>8]||t($1)}[ord($1)&255]~egs; } # That means: @@ -603,6 +609,8 @@ you want to apply the "umlaut becomes -e" rule, here's how to do it for yourself (and then use Unidecode as I<the fallback> afterwards): + use utf8; # <-- probably necessary. + our( %German_Characters ) = qw( Ä AE ä ae Ö OE ö oe @@ -698,6 +706,10 @@ Unidecode: L<http://interglacial.com/tpj/22/> (B<READ IT!>) +Tom Christiansen's +I<Perl Unicode Cookbook>, +L<http://www.perl.com/pub/2012/04/perlunicook-standard-preamble.html> + Unicode Consortium: L<http://www.unicode.org/> Searchable Unihan database: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Unidecode-1.22/t/02000_uniform_table_sizes.t new/Text-Unidecode-1.23/t/02000_uniform_table_sizes.t --- old/Text-Unidecode-1.22/t/02000_uniform_table_sizes.t 2014-07-04 10:16:30.000000000 +0200 +++ new/Text-Unidecode-1.23/t/02000_uniform_table_sizes.t 2014-12-07 13:18:57.000000000 +0100 @@ -5,7 +5,7 @@ BEGIN { @Bank_Numbers = (1 .. 0xFF); } BEGIN {plan tests => 2 + 2 * @Bank_Numbers}; ok 1; -print q[# (Time-stamp: "2014-07-04 02:16:30 MDT sbu...@cpan.org")], "\n"; +print q[# (Time-stamp: "2014-12-07 05:18:57 MST sbu...@cpan.org")], "\n"; print "# Loading all modules and checking fullness of each table.\n"; use Text::Unidecode; @@ -26,7 +26,10 @@ Bank: foreach my $banknum ( @Bank_Numbers ) { my $charnum = $banknum << 8; - my $char = chr( $charnum ); + + # Shut up warnings about UTF-16 surrogate characters + # This is per https://rt.cpan.org/Ticket/Display.html?id=97456 + my $char = do { no warnings 'utf8'; chr( $charnum ) }; print "# About to test banknum $banknum via charnum $charnum\:\n"; ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: - #./Build build flags=%{?_smp_mflags} --myflag