Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Test-Mojibake-0.9-2.el7 RPM for noarch

From EPEL 7 for x86_64 / Packages / p

Name: perl-Test-Mojibake Distribution: Fedora Project
Version: 0.9 Vendor: Fedora Project
Release: 2.el7 Build date: Mon Jan 27 22:22:28 2014
Group: Development/Libraries Build host: buildvm-05.phx2.fedoraproject.org
Size: 50510 Source RPM: perl-Test-Mojibake-0.9-2.el7.src.rpm
Packager: Fedora Project
Url: http://search.cpan.org/dist/Test-Mojibake/
Summary: Check your source for encoding misbehavior
Many modern text editors automatically save files using UTF-8 codification.
However, the perl interpreter does not expect it by default. Whilst this does
not represent a big deal on (most) backend-oriented programs, Web framework
(Catalyst, Mojolicious) based applications will suffer so-called Mojibake
(literally: "unintelligible sequence of characters"). Even worse: if an editor
saves BOM (Byte Order Mark, U+FEFF character in Unicode) at the start of a
script with the executable bit set (on Unix systems), it won't execute at all,
due to shebang corruption.

Avoiding codification problems is quite simple:

 * Always use utf8/use common::sense when saving source as UTF-8
 * Always specify =encoding utf8 when saving POD as UTF-8
 * Do neither of above when saving as ISO-8859-1
 * Never save BOM (not that it's wrong; just avoid it as you'll barely
   notice its presence when in trouble)

However, if you find yourself upgrading old code to use UTF-8 or trying to
standardize a big project with many developers, each one using a different
platform/editor, reviewing all files manually can be quite painful, especially
in cases where some files have multiple encodings (note: it all started when I
realized that gedit and derivatives are unable to open files with character
conversion tables).

Enter the Test::Mojibake ;)

Provides

Requires

License

GPL+ or Artistic

Changelog

* Mon Jan 27 2014 Paul Howarth <paul@city-fan.org> - 0.9-2
  - Bootstrap epel7 build
* Mon Jan 20 2014 Paul Howarth <paul@city-fan.org> - 0.9-1
  - Update to 0.9
    - More consistent UTF-8 naming in docs
    - Dist::Zilla maintenance
    - Fixed shebang in scan_mojibake
      (https://github.com/creaktive/Test-Mojibake/issues/7)
  - Update patch for building with old Test::More versions
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.8-4
  - Perl 5.18 re-rebuild of bootstrapped packages
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.8-2
  - Perl 5.18 rebuild
* Sat Jan 26 2013 Paul Howarth <paul@city-fan.org> - 0.8-1
  - Update to 0.8
    - Fixed cyclic t/ deps
    - Added the standalone scan_mojibake utility
    - Listed Unicode::CheckUTF8 as a recommended prerequisite
    - Recognize utf8::all
    - Passes perlcritic harsh
  - Drop BR: perl(File::Spec)
  - BR: perl(File::Spec::Functions), perl(Pod::Usage) and perl(Test::Script)
  - BR: perl(Test::Pod::LinkCheck) where available
  - Perl::Critic ≥ 1.094 now needed for the 'equivalent_modules' parameter in
    TestingAndDebugging::RequireUseStrict, unavailable in EPEL-5
  - Update patch for building with old Test::More versions
  - Drop %defattr, redundant since rpm 4.4
* Mon Oct 01 2012 Paul Howarth <paul@city-fan.org> - 0.7-1
  - Update to 0.7
    - Fixed multiple =encoding behavior
    - More deterministic t/01-bad-check.t
* Sat Sep 29 2012 Paul Howarth <paul@city-fan.org> - 0.6-1
  - Update to 0.6
    - Fixed incorrect test examples
  - Reinstate BR: perl(Test::Kwalitee) now that kwalitee test is back
* Thu Sep 27 2012 Paul Howarth <paul@city-fan.org> - 0.5-1
  - Update to 0.5
    - Attempt to fix https://github.com/creaktive/Test-Mojibake/issues/2
      (don't fail when no lib directory exists)
    - Kwalitee won't complain any more
  - Kwalitee test dropped upstream, so no longer need BR: perl(Test::Kwalitee)
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.4-3
  - Perl 5.16 re-rebuild of bootstrapped packages
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 0.4-2
  - Perl 5.16 rebuild
* Tue Jun 26 2012 Paul Howarth <paul@city-fan.org> - 0.4-1
  - Update to 0.4
    - _detect_utf8: PP version now handles overlong UTF-8 sequences
    - Tests update (96% coverage)
    - Dist::Zilla update
  - BR: perl(Perl::Critic::Policy::Modules::ProhibitModuleShebang),
    perl(Test::EOL) and perl(Test::Version)
  - BR: perl(Test::Kwalitee), perl(Test::MinimumVersion),
    perl(Test::Perl::Critic) and perl(Test::Synopsis) unconditionally
  - Drop support for building for EPEL-4
  - Drop patch for building with ExtUtils::MakeMaker < 6.30
  - Update patch for building with Test::More < 0.88
  - Add patch to support building without Test::Version
  - Add workaround for the old version of PPI in EPEL-5 not being able to
    handle the unicode byte order mark in t/bom.pl, which breaks
    t/release-minimum-version.t
  - Don't need to remove empty directories from the buildroot
  - Use DESTDIR rather than PERL_INSTALL_ROOT
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.3-5
  - Perl 5.16 rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Oct 04 2011 Paul Howarth <paul@city-fan.org> - 0.3-3
  - BR/R: perl(Unicode::CheckUTF8) for improved performance
* Thu Aug 11 2011 Paul Howarth <paul@city-fan.org> - 0.3-2
  - Sanitize for Fedora/EPEL submission
* Thu Aug 11 2011 Paul Howarth <paul@city-fan.org> - 0.3-1
  - Initial RPM version

Files

/usr/bin/scan_mojibake
/usr/share/doc/perl-Test-Mojibake-0.9
/usr/share/doc/perl-Test-Mojibake-0.9/Changes
/usr/share/doc/perl-Test-Mojibake-0.9/LICENSE
/usr/share/doc/perl-Test-Mojibake-0.9/README
/usr/share/man/man1/scan_mojibake.1.gz
/usr/share/man/man3/Test::Mojibake.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Mojibake.pm


Generated by rpm2html 1.8.1

Fabrice Bellet, Fri Apr 19 01:36:02 2024