Skip Menu |

This queue is for tickets about the Geography-States-NoUnicodeWarnings CPAN distribution.

Report information
The Basics
Id: 106097
Status: resolved
Priority: 0/
Queue: Geography-States-NoUnicodeWarnings

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.004



Subject: Where are the warnings?
I don't see any warnings if I use Geography::States: $ perl5.16.3 -e 'use open ":encoding(utf8)"; use Geography::States;' (no output) $ perl5.22.0 -e 'use open ":encoding(utf8)"; use Geography::States;' (no output) $ perl5.8.9 -e 'use open ":encoding(utf8)"; use Geography::States;' (no output)
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.
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?
On Sun Jul 26 15:57:40 2015, SREZIC wrote: Show quoted text
> 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.
[...] Show quoted text
> So it seems that some perl versions are buggy?
Not necessarily; I've seen test failures (as in: before the fix Geography::States wasn't spitting out warnings) for perl 5.14.4. But I'll batch-install Geography::States on a bunch of perlbrews on this VM and see what happens - thanks for the tip.
On Sun Jul 26 15:11:30 2015, SREZIC wrote: Show quoted text
> I don't see any warnings if I use Geography::States:
It appears to be a combination of weird locale things and maybe other stuff, and early Perls - cpantesters didn't report any tests passing (i.e. Geography::States warning) in perls other than 5.10, 5.12 or 5.14. So I've uploaded a new version that doesn't assume that you'll always get warnings, and updated the documentation. Thanks for the help in testing this!