-# Time-stamp: "2004-06-17 23:04:06 PDT"
+# Time-stamp: "2004-06-20 21:48:03 ADT"
# Sean M. Burke <sburke@cpan.org>
require 5.000;
);
%EXPORT_TAGS = ('ALL' => \@EXPORT_OK);
-$VERSION = "0.31";
+$VERSION = "0.32";
sub uniq { my %seen; return grep(!($seen{$_}++), @_); } # a util function
Revision history for Perl module I18N::LangTags.
- Time-stamp: "2004-06-17 23:07:01 PDT"
+ Time-stamp: "2004-06-20 21:50:16 ADT"
+2004-06-20 Sean M. Burke sburke@cpan.org
+
+ * Release 0.32
+
+ Minor bugfix version:
+ The test 80_all_env.t was erroneously failing under MSWins that
+ had Win32::Locale installed. A workaround added.
+
+
2004-06-17 Sean M. Burke sburke@cpan.org
* Release 0.31
-# Time-stamp: "2004-06-17 22:59:06 PDT"
+# Time-stamp: "2004-06-20 21:47:55 ADT"
require 5;
package I18N::LangTags::Detect;
BEGIN { unless(defined &DEBUG) { *DEBUG = sub () {0} } }
# define the constant 'DEBUG' at compile-time
-$VERSION = "1.02";
+$VERSION = "1.03";
@ISA = ();
use I18N::LangTags qw(alternate_language_tags locale2language_tag);
last; # first one wins
}
- if(&_try_use('Win32::Locale')) {
+ if($ENV{'IGNORE_WIN32_LOCALE'}) {
+ # no-op
+ } elsif(&_try_use('Win32::Locale')) {
# If we have that module installed...
push @languages, Win32::Locale::get_language() || ''
if defined &Win32::Locale::get_language;
require 5;
use Test;
-# Time-stamp: "2004-06-17 22:59:30 PDT"
+# Time-stamp: "2004-06-20 21:51:11 ADT"
BEGIN { plan tests => 14; }
use I18N::LangTags::Detect 1.01;
print "# Hi there...\n";
print "# [end of ENV]\n#\n";
}
+$ENV{'IGNORE_WIN32_LOCALE'} = 1; # a hack, just for testing's sake.
print "# Test LANG...\n";
$ENV{'REQUEST_METHOD'} = '';