Skip Menu |

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

Report information
The Basics
Id: 119741
Status: resolved
Priority: 0/
Queue: Locale-Codes

People
Owner: Nobody in particular
Requestors: greg.pinn [...] gmail.com
Cc:
AdminCc:

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



Subject: LOCALE_CODE_GENC_ALPHA_2
Date: Fri, 6 Jan 2017 11:44:32 -0600
To: bug-Locale-Codes [...] rt.cpan.org
From: Greg Pinn <greg.pinn [...] gmail.com>
I'm trying to use Locale::Country to convert GENC codes to the country name, but it seems that there is no built-in repository for LOCALE_CODE_GENC_ALPHA_2 as there is for ISO codes. Is this missing in the distribution or am I doing something incorrectly? Regards ----------------------------------------------- Greg Pinn greg.pinn@gmail.com Cell: 214-415-4471 Fax: 214-593-3025 http://www.linkedin.com/in/gregpinn -----------------------------------------------
I somehow overlooked (for some time now) that the constants for newly added code sets are not exported correctly. The GENC codes ARE available, but the constants are not. If you refer to the code set as 'genc-alpha-2' instead of using the constant, things will work as desired. I have actually already corrected this (without realizing that there was a problem) because in the next release, the functional modules are generated rather than hand written (and subject to errors). Sorry for the problem.
Subject: Re: [rt.cpan.org #119741] LOCALE_CODE_GENC_ALPHA_2
Date: Fri, 6 Jan 2017 13:43:13 -0600
To: bug-Locale-Codes [...] rt.cpan.org
From: Greg Pinn <greg.pinn [...] gmail.com>
Thanks for the quick reply! ----------------------------------------------- Greg Pinn greg.pinn@gmail.com Cell: 214-415-4471 Fax: 214-593-3025 http://www.linkedin.com/in/gregpinn ----------------------------------------------- On Fri, Jan 6, 2017 at 1:34 PM, Sullivan Beck via RT < bug-Locale-Codes@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=119741 > > > I somehow overlooked (for some time now) that the constants for newly > added code sets are not exported correctly. > > The GENC codes ARE available, but the constants are not. > > If you refer to the code set as 'genc-alpha-2' instead of using the > constant, things will work as desired. > > I have actually already corrected this (without realizing that there was a > problem) because in the next release, the functional modules are generated > rather than hand written (and subject to errors). > > Sorry for the problem. > >