Skip to content

Commit

Permalink
Update Locale::Codes to 3.12
Browse files Browse the repository at this point in the history
We're skipping inclusion of some files such as the unused Build.PL,
INSTALL, etc. cpan/Locale-Codes/internal/* should probably also not be
included in perl core.
  • Loading branch information
tsee committed Apr 21, 2010
1 parent b7e0327 commit f768f60
Show file tree
Hide file tree
Showing 53 changed files with 29,532 additions and 3,233 deletions.
42 changes: 32 additions & 10 deletions MANIFEST
Expand Up @@ -1346,6 +1346,23 @@ cpan/List-Util/t/tainted.t Scalar::Util
cpan/List-Util/t/weak.t Scalar::Util
cpan/List-Util/XS.pp List::Util
cpan/Locale-Codes/ChangeLog Locale::Codes
cpan/Locale-Codes/examples/README.examples Locale::Codes
cpan/Locale-Codes/internal/build.yaml Locale::Codes maintainer file
cpan/Locale-Codes/internal/data.country.pl Locale::Codes maintainer file
cpan/Locale-Codes/internal/data.currency.pl Locale::Codes maintainer file
cpan/Locale-Codes/internal/data.language.pl Locale::Codes maintainer file
cpan/Locale-Codes/internal/data.script.pl Locale::Codes maintainer file
cpan/Locale-Codes/internal/get_codes Locale::Codes maintainer file
cpan/Locale-Codes/internal/ispell.isp Locale::Codes maintainer file
cpan/Locale-Codes/internal/NOTES Locale::Codes maintainer file
cpan/Locale-Codes/internal/VERSION Locale::Codes maintainer file
cpan/Locale-Codes/lib/Locale/Codes/Changes.pod Locale::Codes documentation
cpan/Locale-Codes/lib/Locale/Codes/Country.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Codes/Currency.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Codes/Language.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Codes.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Codes.pod Locale::Codes documentation
cpan/Locale-Codes/lib/Locale/Codes/Script.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Constants.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Constants.pod Locale::Codes documentation
cpan/Locale-Codes/lib/Locale/Country.pm Locale::Codes
Expand All @@ -1356,16 +1373,21 @@ cpan/Locale-Codes/lib/Locale/Language.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Language.pod Locale::Codes documentation
cpan/Locale-Codes/lib/Locale/Script.pm Locale::Codes
cpan/Locale-Codes/lib/Locale/Script.pod Locale::Codes documentation
cpan/Locale-Codes/Makefile.PL
cpan/Locale-Codes/README Locale::Codes
cpan/Locale-Codes/t/all.t See if Locale::Codes work
cpan/Locale-Codes/t/constants.t See if Locale::Codes work
cpan/Locale-Codes/t/country.t See if Locale::Codes work
cpan/Locale-Codes/t/currency.t See if Locale::Codes work
cpan/Locale-Codes/t/language.t See if Locale::Codes work
cpan/Locale-Codes/t/rename.t See if Locale::Codes work
cpan/Locale-Codes/t/script.t See if Locale::Codes work
cpan/Locale-Codes/t/uk.t See if Locale::Codes work
cpan/Locale-Codes/LICENSE Locale::Codes
cpan/Locale-Codes/README.first Locale::Codes
cpan/Locale-Codes/t/alias_code.t Locale::Codes tests
cpan/Locale-Codes/t/code2country.t Locale::Codes tests
cpan/Locale-Codes/t/code2currency.t Locale::Codes tests
cpan/Locale-Codes/t/code2language.t Locale::Codes tests
cpan/Locale-Codes/t/code2script.t Locale::Codes tests
cpan/Locale-Codes/t/country2code.t Locale::Codes tests
cpan/Locale-Codes/t/country_code2code.t Locale::Codes tests
cpan/Locale-Codes/t/country.t Locale::Codes tests
cpan/Locale-Codes/t/currency2code.t Locale::Codes tests
cpan/Locale-Codes/t/language2code.t Locale::Codes tests
cpan/Locale-Codes/t/language.t Locale::Codes tests
cpan/Locale-Codes/t/script2code.t Locale::Codes tests
cpan/Locale-Codes/t/testfunc.pl Locale::Codes tests
cpan/Locale-Maketext-Simple/lib/Locale/Maketext/Simple.pm Locale::Simple
cpan/Locale-Maketext-Simple/t/0-signature.t Locale::Simple tests
cpan/Locale-Maketext-Simple/t/1-basic.t Locale::Simple tests
Expand Down
3 changes: 2 additions & 1 deletion Porting/Maintainers.pl
Expand Up @@ -843,8 +843,9 @@ package Maintainers;
'Locale-Codes' =>
{
'MAINTAINER' => 'sbeck',
'DISTRIBUTION' => 'NEILB/Locale-Codes-2.07.tar.gz',
'DISTRIBUTION' => 'SBECK/Locale-Codes-3.12.tar.gz',
'FILES' => q[cpan/Locale-Codes],
'EXCLUDED' => [ qw{t/pod_coverage.t t/pod.t}, qr{^t/runtests} ],
'CPAN' => 1,
'UPSTREAM' => 'cpan',
},
Expand Down
68 changes: 68 additions & 0 deletions cpan/Locale-Codes/ChangeLog
@@ -1,6 +1,74 @@

ChangeLog for Locale-Codes Distribution

As of 3.00, the codes are autogenerated from the standards. With each release, codes will
be re-generated and tested to see if any code changed. Any time there are any changes to
the codes, it will be flagged below with a change: NEW CODE(s).

3.13

3.12 2010-04-06 sbeck
* NEW CODE(s)
* Renamed test.pl to testfunc.pl to avoid causing an error
when built as part of perl.

3.11 2010-03-01 sbeck
* NEW CODE(s)
* Added the IANA domain names to Country
* Fixed a problem that produced warnings with perl 5.11.5.
Jerry D. Hedden

3.10 2010-02-18 sbeck
* NEW CODE(s)
* Moved support files into the Locale::Codes namespace.
* The work done in each of the Locale::XXX modules was
virtually identical to each other. It has all
been moved to a central module and the
Locale::XXX moduels are now just wrappers.
* The XXX_code2code functions would return undef if the
same codeset were passed in for both the 2nd and
3rd arguments. This doesn't make sense and has
been changed.
* Added all semi-private routines (except for the
couple that were already present):
rename_XXX
add_XXX
delete_XXX
add_XXX_alias
delete_XXX_alias
rename_XXX_code
add_XXX_code_alias
delete_XXX_code_alias
* Added "UK" alias. Steve Hay

3.01 2010-02-15 sbeck
* Fixed Makefile.PL and Build.PL to install as core
modules.

3.00 2010-02-10 sbeck
* NEW CODE(s)
* Took over maintenance of the code
* All codes and country names come from the official
standards
* code2country now returns the name of the country specified
in the standard (if the different standards refer
to the country by different variations in the name,
the results will differe based on the CODESET)
* Added code sets
FIPS 10 country codes
Alpha-3 and Term language codes
Numeric currency codes
* The rename_country funcion from 2.07 would guess the
CODESET (unlike all other functions which used
a default of LOCALE_CODE_ALPHA_2). The guess can
cause problems since (with the addition of FIPS)
codes may appear in different codesets for different
countries. The behavior has been changed to be
the same as other functions (default to
LOCALE_CODE_ALPHA_2).
* Dropped support for _alias_code
* Added language_code2code, currency_code2code

2.07 2004-06-10 neilb
* made $_ local in the initialisation code for each module
change back-propagated from Perl distribution
Expand Down
3 changes: 3 additions & 0 deletions cpan/Locale-Codes/LICENSE
@@ -0,0 +1,3 @@
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

10 changes: 0 additions & 10 deletions cpan/Locale-Codes/Makefile.PL

This file was deleted.

49 changes: 0 additions & 49 deletions cpan/Locale-Codes/README

This file was deleted.

54 changes: 54 additions & 0 deletions cpan/Locale-Codes/README.first
@@ -0,0 +1,54 @@

Locale-Codes Distribution

For changes in this release, please refer to the Locale::Changes
man-page.

For changes prior to 3.00, please see the ChangeLog file.

This distribution contains Perl modules which can be used to process
ISO codes for identifying languages, countries, scripts,
and currencies & funds.

Locale::Language

Codes for language identification including ISO 639.

For example, 'en' is the code for 'English'.

Locale::Country

Codes for country identification including ISO 3166
and FIPS 10.

For example, 'us' is the code for 'United States'.

Locale::Currency

Codes for currency and fund identification including
ISO 4217.

For example, 'sek' is the code for 'Swedish Krona'.

Locale::Script

Codes for script identification including ISO 15924.

For example, 'Phnx' is the code for 'Phoenician'.

The modules are documented using pod. When you "make install", you
will get man-pages: Local::Codes and each of the modules listed above.

The first version of Locale::Currency was written by Michael Hennecke,
with modifications by Neil Bowers for inclusion.

The first versions of Locale::Language, Locale::Country, and Locale::Script
were written by Neil Bowers.

Please let me know if you experience any problems with these modules,
or have any ideas for additions.

Also, I plan on releasing a new version a couple of times a year to make
sure that all of the codes are current. If a code changes in any standard,
and you want a new release, just email me and I'll put out a new release.

96 changes: 96 additions & 0 deletions cpan/Locale-Codes/examples/README.examples
@@ -0,0 +1,96 @@
Please refer to the ../t directory for examples of how to use this
module.

The tests are organized fairly simply. In each .t file (except for
pod and pod_coverage) is a line of the form:

test_Func(\&FUNC,$tests,$runtests,ARGS)

FUNC is the name of one of the functions available in the module,
or some function defined in the test script which calls one or more
of the module functions.

Also in the file are a series of tests organized as:

$tests = "
TEST1

TEST2

...
";

or

$tests = [
TEST1,

TEST2,

... ];


In the first case, a test is a list of strings, some of which are used
as arguments for the function being called, and some are expected results.
If the expected result is a simple scalar, each TEST may be a simple list
of space separated strings, the last of which is treated as the expected
output.

For example, if the following line appears in the test script:

test_Func(\&somefunc,$tests,$runtests);

and one of the tests is:

A B C

then the following behavior is expected:

somefunc(A,B)
=> C

The list of strings may also be given on separate lines as:

A
B
C

If the expected results are a list of values, then the arguments
to the function and the expected results are separated by a tilde (~).
So if the following behavior is expected:

somefunc(A,B)
=> (C,D)

the test could be written in either of the following ways:

A B ~ C D

A
B
~
C
D

In all cases, leading spaces are ignored. Also, the strings may include
spaces if (and only if) they are given one per line.

Two special strings "_undef_" and "_blank_" may be included in the list
to have the values undef or "" repectively included as either an argument
or an expected return value.


In the second method of entering tests, tests are given as a list reference
with two values. The first is a list reference containing arguments, and
the second is a list reference containing the expected return value(s). The
expected values should be simple strings.

So, a test could be entered as:

[ [ qw(A B) ],
[ qw(C D) ] ]

and be equivalent to:

A B ~ C D

0 comments on commit f768f60

Please sign in to comment.