diff options
author | Todd Rinaldo <toddr@cpan.org> | 2010-09-28 12:19:58 -0500 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-09-28 11:17:13 -0700 |
commit | ed897e29a200fd3c758cb7ab8c0d953347a98056 (patch) | |
tree | cdd35ac3bf41cd106d86f4ac5024e23397abcdbc /dist/Locale-Maketext/lib/Locale/Maketext.pm | |
parent | 152eae845915a3a33260ad109ad3888c8894d666 (diff) | |
download | perl-ed897e29a200fd3c758cb7ab8c0d953347a98056.tar.gz |
perl RT# 76668 - This patch resolves CPAN RT #48808.
This change:
1. loads I18N::LangTags::Detect in BEGIN rather than whenever _ambient_langprefs is called
2. Removes the version number requirement for I18N::LangTags. Detect didn't come around until 0.31 so a dep on 0.30 is unnecessary.
This will assure any load issues with I18N::LangTags::Detect happen at BEGIN, not randomly somewhere in the program.
This does increase the dependency on I18N::LangTags from 0.30 to 0.31, but the release dates are as follows, so I don't think it's a big deal:
0.30 - 2004-03-30 Sean M. Burke sburke@cpan.org
0.31 - 2004-06-17 Sean M. Burke sburke@cpan.org
Diffstat (limited to 'dist/Locale-Maketext/lib/Locale/Maketext.pm')
-rw-r--r-- | dist/Locale-Maketext/lib/Locale/Maketext.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/Locale-Maketext/lib/Locale/Maketext.pm b/dist/Locale-Maketext/lib/Locale/Maketext.pm index a685d6be53..4436be1bd5 100644 --- a/dist/Locale-Maketext/lib/Locale/Maketext.pm +++ b/dist/Locale-Maketext/lib/Locale/Maketext.pm @@ -4,7 +4,8 @@ use strict; use vars qw( @ISA $VERSION $MATCH_SUPERS $USING_LANGUAGE_TAGS $USE_LITERALS $MATCH_SUPERS_TIGHTLY); use Carp (); -use I18N::LangTags 0.30 (); +use I18N::LangTags (); +use I18N::LangTags::Detect (); #-------------------------------------------------------------------------- @@ -380,7 +381,6 @@ sub _langtag_munging { ########################################################################### sub _ambient_langprefs { - require I18N::LangTags::Detect; return I18N::LangTags::Detect::detect(); } |