On 2015-07-26 15:50:19, SKINGTON wrote:
Show quoted text> > I don't see any warnings if I use Geography::States:
> >
> > $ perl5.16.3 -e 'use open ":encoding(utf8)"; use Geography::States;'
> > (no output)
>
> Yeah, I've noticed some test failures in CPAN testers that had similar
> results. I haven't had time to look at those failures yet, but I'm
> guessing it's some annoying intersection of locales and Unicode-
> handling. FWIW:
>
> sam@chimera64:dev$ locale
> LANG=en_GB.UTF-8
> LANGUAGE=en_GB:en
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_COLLATE="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_PAPER="C"
> LC_NAME="C"
> LC_ADDRESS="C"
> LC_TELEPHONE="C"
> LC_MEASUREMENT="C"
> LC_IDENTIFICATION="C"
> LC_ALL=C
> sam@chimera64:dev$ perl -e 'use open ":encoding(utf8)"; use
> Geography::States;'
> utf8 "\xE1" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xE1" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xED" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xE1" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xE3" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xE1" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xED" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xED" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xE1" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xF4" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
> utf8 "\xE3" does not map to Unicode at /opt/perlbrew/perls/perl-
> 5.14.2/lib/site_perl/5.14.2/Geography/States.pm line 50, <DATA> line
> 62.
You're using perl 5.14. On the same machine as above (with same locale settings etc):
$ perl5.14.4 -e 'use open ":encoding(utf8)"; use Geography::States;'
utf8 "\xE1" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xE1" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xED" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xE1" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xE3" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xE1" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xED" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xED" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xE1" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xF4" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
utf8 "\xE3" does not map to Unicode at /opt/perl-5.14.4/lib/site_perl/5.14.4/Geography/States.pm line 50, <DATA> line 62.
So it seems that some perl versions are buggy?