Skip Menu |

This queue is for tickets about the Locale-Object CPAN distribution.

Report information
The Basics
Id: 101634
Status: patched
Priority: 0/
Queue: Locale-Object

People
Owner: cpan [...] desert-island.me.uk
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

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



Subject: No two letter code for Norwegian
This program: #!/usr/bin/env perl use strict; use warnings; use Locale::Object::Country; use Data::Dumper; my $c = Locale::Object::Country->new(code_alpha2 => 'no'); my @langs = $c->languages(); my $l = $langs[0]; print Dumper($l); gives this output: $VAR1 = bless( { '_code_alpha3' => 'nno', '_code_alpha2' => undef, '_name' => 'Norwegian (Nynorsk)' }, 'Locale::Object::Language' ); Shouldn't code_alpha2 be 'no'?
On Tue Jan 20 13:30:27 2015, NHORNE wrote: Show quoted text
> This program: > > #!/usr/bin/env perl > > use strict; > use warnings; > > use Locale::Object::Country; > use Data::Dumper; > > my $c = Locale::Object::Country->new(code_alpha2 => 'no'); > > my @langs = $c->languages(); > my $l = $langs[0]; > > print Dumper($l); > > gives this output: > > $VAR1 = bless( { > '_code_alpha3' => 'nno', > '_code_alpha2' => undef, > '_name' => 'Norwegian (Nynorsk)' > }, 'Locale::Object::Language' ); > > Shouldn't code_alpha2 be 'no'?
It seems there are several database issues with Norwegian, and one of them is that the 2-letter code for the language is missing.