.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Locale::Codes::Changes 3perl" .TH Locale::Codes::Changes 3perl "2018-07-16" "perl v5.28.0" "Perl Programmers Reference Guide" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Locale::Codes::Changes \- details changes to Locale::Codes .SH "SYNOPSIS" .IX Header "SYNOPSIS" This describes the changes made to modules in the Locale-Codes distribution. Major changes are marked with asterisks (*). For the most part, all modules have remained backward compatible at every release, but occasionally a change is made which is backward incompatible. These are marked with an exclamation mark (!). .PP 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: \s-1NEW CODE\s0(s). .PP I intend to check for new codes four times a year (March, June, September, December). I will also check on request, so if a code changes that you use, feel free to contact me. Any time there are new codes, I will add them to the module and release a new version. .SH "VERSION 3.59 (planned 2018\-12\-01; sbeck)" .IX Header "VERSION 3.59 (planned 2018-12-01; sbeck)" .SH "VERSION 3.58 (planned 2018\-09\-01; sbeck)" .IX Header "VERSION 3.58 (planned 2018-09-01; sbeck)" .SH "VERSION 3.57 (planned 2018\-06\-01; sbeck)" .IX Header "VERSION 3.57 (planned 2018-06-01; sbeck)" .SH "VERSION 3.56 (planned 2018\-03\-01; sbeck)" .IX Header "VERSION 3.56 (planned 2018-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.55 (2017\-11\-17; sbeck)" .IX Header "VERSION 3.55 (2017-11-17; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fB(*) Deprecated in core\fR" 4 .IX Item "(*) Deprecated in core" Because correct usage of any of the Locale::Codes modules requires that they be kept up-to-date, I have long felt that it should not be distributed as a core module. After discussion on the perl5\-porters list, it is agreed, and the deprecation process has been started. .Sp Thanks to p5p\-porters (especially Dagfinn Ilmari Mannsaker) for discussion and guidance. .IP "Changes from a github pull request applied" 4 .IX Item "Changes from a github pull request applied" A couple minor changes (updated .travis.yml to include newest versions of perl; and a couple changes to pod_coverage.t) reported by lancew on GitHub. .IP "Got rid of Build.PL" 4 .IX Item "Got rid of Build.PL" Simplified things by only supporting one of Makefile.PL/Build.PL (and the latter has been removed from perl core some time ago). \s-1RT 123572\s0 .IP "Fixed \s-1INSTALLDIRS\s0" 4 .IX Item "Fixed INSTALLDIRS" The behavior of installing core modules changed in 5.12 a bit, and Makefile.PL now reflects that. \s-1RT 123571\s0 .SH "VERSION 3.54 (2017\-09\-01; sbeck)" .IX Header "VERSION 3.54 (2017-09-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.53 (2017\-07\-25; sbeck)" .IX Header "VERSION 3.53 (2017-07-25; sbeck)" \&\s-1NEW CODE\s0(s) .IP "Fixed the default error condition in legacy modules." 4 .IX Item "Fixed the default error condition in legacy modules." With the addition of the \s-1OO\s0 module, better error handling was added (and it was on by default). The non-OO (legacy) modules did not report errors, so code that uses them, would now behave differently if invalid data were passed in. .Sp I have turned off error handling by default in the legacy modules. The show_errors method was added to each of the non-OO modules to report errors if desired. .Sp Reported by dmaestro on GitHub. .SH "VERSION 3.52 (2017\-06\-01; sbeck)" .IX Header "VERSION 3.52 (2017-06-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.51 (2017\-04\-10; sbeck)" .IX Header "VERSION 3.51 (2017-04-10; sbeck)" \&\s-1NEW CODE\s0(s) .IP "Tests no longer require (.) in \s-1INC\s0" 4 .IX Item "Tests no longer require (.) in INC" As of perl 5.25.11, (.) is being removed from \s-1INC.\s0 I had to adjust the tests accordingly. .SH "VERSION 3.50 (2017\-03\-01; sbeck)" .IX Header "VERSION 3.50 (2017-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fB(*) Rewrote as \s-1OO\s0 module\fR" 4 .IX Item "(*) Rewrote as OO module" The core module (Locale::Codes) is now an \s-1OO\s0 module that can be used directly. All of the other modules (Locale::Codes::TYPE) are still the older functional interfaces and remain unchanged. .IP "\fBAdded some constants\fR" 4 .IX Item "Added some constants" Historically, the constant names used to identify the codesets have been named inconsistently. The original constants for codesets are: .Sp .Vb 1 \& Type Constants \& \& country LOCALE_CODE_* \& currency LOCALE_CURR_* \& language LOCALE_LANG_* \& \& script LOCALE_SCRIPT_* \& langfam LOCALE_LANGFAM_* \& langvar LOCALE_LANGVAR_* \& langext LOCALE_LANGEXT_* .Ve .Sp For consistencies sake, I have added some new codes (which are otherwise identical to the irregularly named codes): .Sp .Vb 3 \& country LOCALE_COUNTRY_* \& currency LOCALE_CURRENCY_* \& language LOCALE_LANGUAGE_* .Ve .Sp Going forward, all constants will include the full name of the code type. .IP "Non-OO modules are now generated" 4 .IX Item "Non-OO modules are now generated" All non-OO modules are now automatically generated. This will make it easier to keep them 100% consistent as well as making it easier to add new types of code sets. .Sp All of the documentation for them is also generated except for the description of the code sets. That has been moved into the Locale::Codes::Types document. .IP "Fixed a bug where constants were not exported" 4 .IX Item "Fixed a bug where constants were not exported" Some of the constants for some of the newer code sets were not exported properly. This was fixed when I started generating the non-OO modules, but was reported (after I had already fixed it in development) as \s-1RT 119741 .\s0 .SH "VERSION 3.42 (2016\-11\-30; sbeck)" .IX Header "VERSION 3.42 (2016-11-30; sbeck)" .IP "\fBAdded Czech republic aliases back in\fR" 4 .IX Item "Added Czech republic aliases back in" Common Czech republic aliases disappeared from the standards, so I added them back in. Rob Emery .SH "VERSION 3.41 (2016\-11\-18; sbeck)" .IX Header "VERSION 3.41 (2016-11-18; sbeck)" \&\s-1NEW CODE\s0(s) (Jiri Bohac noted that they were needed so this was release a couple weeks earlier than planned) .SH "VERSION 3.40 (2016\-09\-01; sbeck)" .IX Header "VERSION 3.40 (2016-09-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.39 (2016\-05\-31; sbeck)" .IX Header "VERSION 3.39 (2016-05-31; sbeck)" No new codes (for the existing codesets). .IP "\fBAdded \s-1UN\s0 codes back in\fR" 4 .IX Item "Added UN codes back in" The \s-1UN\s0 codes have been added back in as their own list of codes. Jarkko Hietaniemi .IP "\fBAdded \s-1GENC\s0 codes\fR" 4 .IX Item "Added GENC codes" The \s-1GENC\s0 codes have been added. These are the new \s-1US\s0 Government codes that replace the \s-1FIPS\-10\s0 codes. They are based on, but not identical to the \s-1ISO 3166\s0 codes. .SH "VERSION 3.38 (2016\-03\-02; sbeck)" .IX Header "VERSION 3.38 (2016-03-02; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBTests reworked\fR" 4 .IX Item "Tests reworked" Improved test suite (and made some changes to Codes.pm) based on Devel::Cover. Test suite now has 100% coverage. .SH "VERSION 3.37 (2015\-12\-01; sbeck)" .IX Header "VERSION 3.37 (2015-12-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.36 (2015\-09\-01; sbeck)" .IX Header "VERSION 3.36 (2015-09-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fB(!) Removed alias_code function\fR" 4 .IX Item "(!) Removed alias_code function" The alias_code function was preserved for backward compatibility, but has been deprecated since 3.20. It has been removed. .SH "VERSION 3.35 (2015\-06\-01; sbeck)" .IX Header "VERSION 3.35 (2015-06-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBDocumentation improvements\fR" 4 .IX Item "Documentation improvements" Many changes to the formatting in the documentation to improve it. Suggested by Pete Houston. .SH "VERSION 3.34 (2015\-03\-01; sbeck)" .IX Header "VERSION 3.34 (2015-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.33 (2014\-12\-01; sbeck)" .IX Header "VERSION 3.33 (2014-12-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBFilled out \s-1LOCALE_LANG_TERM\s0 codeset\fR" 4 .IX Item "Filled out LOCALE_LANG_TERM codeset" The terminologic language codes only included codes from languages where the \s-1ISO\s0 specified both a bibliographic code and a terminologic code. If both are not specified, the better solution was to use the code for both code sets. Prompted by a suggestion by Jarkko Hietaniemi. .IP "\fBMoved repository to GitHub\fR" 4 .IX Item "Moved repository to GitHub" Suggested by Gabor Szabo. .SH "VERSION 3.32 (2014\-09\-01; sbeck)" .IX Header "VERSION 3.32 (2014-09-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.31 (2014\-06\-01; sbeck)" .IX Header "VERSION 3.31 (2014-06-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBBug fixes\fR" 4 .IX Item "Bug fixes" Fixed a bug in the scripts used to extract data from spreadsheets that prevented the \s-1SHP\s0 currency code from being found. \s-1RT 94229\s0 .SH "VERSION 3.30 (2014\-03\-04; sbeck)" .IX Header "VERSION 3.30 (2014-03-04; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBalias_code remove date set\fR" 4 .IX Item "alias_code remove date set" The alias_code function exists for backward compatibility. It has been deprecated since version 3.20 when it was replaced by rename_country_code. The alias_code function will be removed in the December 2014 release. .IP "\fBBug fixes\fR" 4 .IX Item "Bug fixes" Fixed a problem that was preventing rename_* functions to not work. \&\s-1RT 92680.\s0 .SH "VERSION 3.29 (2014\-01\-27; sbeck)" .IX Header "VERSION 3.29 (2014-01-27; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fB\s-1ISO 3166\s0 country codes improved\fR" 4 .IX Item "ISO 3166 country codes improved" \&\s-1ISO 3166\s0 is now browsable online (previously, only the alpha\-2 codes were) and it contains more accurate information than the previous sources, so I've switched to using the full standard. In response to \s-1RT 92303\s0 which reported some codes being 'retired' that should not have been. .IP "\fBBug fixes\fR" 4 .IX Item "Bug fixes" Fixed the pod test files so that pod tests won't get run at install time. In response to \s-1RT 91167.\s0 .SH "VERSION 3.28 (2013\-12\-02; sbeck)" .IX Header "VERSION 3.28 (2013-12-02; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.27 (2013\-09\-03; sbeck)" .IX Header "VERSION 3.27 (2013-09-03; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fB* \s-1FIPS\-10\s0 country codes removed\fR" 4 .IX Item "* FIPS-10 country codes removed" As of June, the \s-1FIPS\s0 codes are not being published in their entirety. Only changes to the codes are published. This adds a huge layer of complexity to maintaining the set, which is not worth doing considering that the set is deprecated. As such, the code set is no longer supported. .SH "VERSION 3.26 (2013\-06\-03; sbeck)" .IX Header "VERSION 3.26 (2013-06-03; sbeck)" .IP "\fBDocumentation fixes\fR" 4 .IX Item "Documentation fixes" Some of the examples were not correct. \s-1RT 84589\s0 .Sp Some typos corrected. \s-1RT 85692\s0 .SH "VERSION 3.25 (2013\-03\-01; sbeck)" .IX Header "VERSION 3.25 (2013-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.24 (2012\-12\-03; sbeck)" .IX Header "VERSION 3.24 (2012-12-03; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBSyria alias\fR" 4 .IX Item "Syria alias" Syria added as an alias. \s-1RT 82747\s0 .IP "\fB\s-1FIPS\-10\s0 country codes deprecated\fR" 4 .IX Item "FIPS-10 country codes deprecated" The \s-1FIPS\-10\s0 document is being withdrawn. It was deprecated in 2008, and is being updated now only until all the agencies that use it have switched to something else. The current version no longer lists the long names for countries. These long names (such as 'Republic of Albania' for Albania) only appeared in the old \s-1FIPS\-10\s0 document which is no longer available, so they are no longer available in this module. .Sp I will continue to support the \s-1FIPS\-10\s0 codeset as long as it is available, but at that point, it will be withdrawn immediately. If an official end-of-life date is announced, I will include a notice here. Otherwise, support for the codeset will be discontinued when the document is withdrawn. .Sp You are encouraged to no longer use the \s-1FIPS\-10\s0 codeset. .IP "\fBDomain country codes now come from \s-1ISO 3166\s0\fR" 4 .IX Item "Domain country codes now come from ISO 3166" The \s-1IANA\s0 domain codes have changed slightly. The \s-1IANA\s0 no longer publishes a list of countries associated with their codes. Instead, they use the \s-1ISO 3166\s0 codes and country names. However, they support a few non-standard codes, so I will continue to maintain this codeset. The domain codes are now lowercase to correspond to the \s-1ISO 3166\s0 codes. .SH "VERSION 3.23 (2012\-09\-01; sbeck)" .IX Header "VERSION 3.23 (2012-09-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.22 (2012\-06\-01; sbeck)" .IX Header "VERSION 3.22 (2012-06-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBUpdated perl version required\fR" 4 .IX Item "Updated perl version required" Changed 'require 5.002' (which dated back to the version 2.xx Locale-Codes) to 'require 5.006'. Some features used in Locale-Codes are not supported that far back. Nicholas Clark .IP "\fBSorted deprecated codes\fR" 4 .IX Item "Sorted deprecated codes" The codes in the generated deprecated codes modules were not sorted making version diffs bigger than they should be. Nicholas Clark .SH "VERSION 3.21 (2012\-03\-01; sbeck)" .IX Header "VERSION 3.21 (2012-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.20 (2011\-12\-01; sbeck)" .IX Header "VERSION 3.20 (2011-12-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBAdded limited support for deprecated codes\fR" 4 .IX Item "Added limited support for deprecated codes" The code2XXX, XXX2code, all_XXX_codes, and all_XXX_names functions now support retired codes. \s-1RT 71124\s0 .IP "\fBFixed capitalization\fR" 4 .IX Item "Fixed capitalization" The 'South Sudan' country was all caps. \s-1RT 71024\s0 .IP "\fBPod tests off by default\fR" 4 .IX Item "Pod tests off by default" The pod tests will not run at install time. \s-1RT 71122\s0 .IP "\fBCodesets may be specified by name\fR" 4 .IX Item "Codesets may be specified by name" All codesets may be specified by a constant or by their name now. Previously, they were specified only by a constant. .IP "\fBalias_code deprecated\fR" 4 .IX Item "alias_code deprecated" The alias_code function exists for backward compatibility. It has been replaced by rename_country_code . The alias_code function will be removed sometime after September, 2013 . .IP "\fBCode cleanup\fR" 4 .IX Item "Code cleanup" All work is now done in the central module (Locale::Codes). Previously, some was still done in the wrapper modules (Locale::Codes::*) but that is gone now. .IP "\fBAdded LangFam module\fR" 4 .IX Item "Added LangFam module" Added Language Family codes (langfam) as defined in \s-1ISO 639\-5.\s0 .SH "VERSION 3.18 (2011\-08\-31; sbeck)" .IX Header "VERSION 3.18 (2011-08-31; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBNo longer use \s-1CIA\s0 data\fR" 4 .IX Item "No longer use CIA data" The \s-1CIA\s0 world added non-standard values, so I no longer use it as a source of data. Based on a report by Michiel Beijen. .SH "VERSION 3.17 (2011\-06\-28; sbeck)" .IX Header "VERSION 3.17 (2011-06-28; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBAdded new types of codes\fR" 4 .IX Item "Added new types of codes" Added Language Extension codes (langext) and Language Variation codes (langvar) as defined in the \s-1IANA\s0 language registry. .IP "\fBAdded new codeset(s)\fR" 4 .IX Item "Added new codeset(s)" Added language codes from \s-1ISO 639\-5\s0 .Sp Added language/script codes from the \s-1IANA\s0 language subtag registry .IP "\fBBug fixes\fR" 4 .IX Item "Bug fixes" Fixed an uninitialized value warning. \s-1RT 67438\s0 .Sp Fixed the return value for the all_XXX_codes and all_XXX_names functions. \s-1RT 69100\s0 .IP "\fBReorganized code\fR" 4 .IX Item "Reorganized code" Reorganized modules to move Locale::MODULE to Locale::Codes::MODULE to allow for cleaner future additions. The original four modules (Locale::Language, Locale::Currency, Locale::Country, Locale::Script) will continue to work, but all new sets of codes will be added in the Locale::Codes namespace. .SH "VERSION 3.16 (2011\-03\-01; sbeck)" .IX Header "VERSION 3.16 (2011-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.15 (2010\-12\-02; sbeck)" .IX Header "VERSION 3.15 (2010-12-02; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBMinor fixes\fR" 4 .IX Item "Minor fixes" Added version number to Makefile.PL/Build.PL requirement for \s-1POD\s0 testing modules. \s-1RT 62247\s0 .Sp Changed 'use vars' to 'our' .SH "VERSION 3.14 (2010\-09\-28; sbeck)" .IX Header "VERSION 3.14 (2010-09-28; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBBug fixes\fR" 4 .IX Item "Bug fixes" Stripped out some \s-1HTML\s0 that got included with some codes. .SH "VERSION 3.13 (2010\-06\-04; sbeck)" .IX Header "VERSION 3.13 (2010-06-04; sbeck)" \&\s-1NEW CODE\s0(s) .SH "VERSION 3.12 (2010\-04\-06; sbeck)" .IX Header "VERSION 3.12 (2010-04-06; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBReorganized code\fR" 4 .IX Item "Reorganized code" Renamed test.pl to testfunc.pl to avoid causing an error when built as part of perl. .SH "VERSION 3.11 (2010\-03\-01; sbeck)" .IX Header "VERSION 3.11 (2010-03-01; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBAdded new codeset(s)\fR" 4 .IX Item "Added new codeset(s)" Added the \s-1IANA\s0 domain names to Country .IP "\fBBug fixes\fR" 4 .IX Item "Bug fixes" Fixed a problem that produced warnings with perl 5.11.5. Jerry D. Hedden .SH "VERSION 3.10 (2010\-02\-18; sbeck)" .IX Header "VERSION 3.10 (2010-02-18; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fBReorganized code\fR" 4 .IX Item "Reorganized code" Moved support files into the Locale::Codes namespace. .Sp 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 modules are now just wrappers. .IP "\fB(!) Changed XXX_code2code behavior slightly\fR" 4 .IX Item "(!) Changed XXX_code2code behavior slightly" In previous versions, passing in the same code set for both code set arguments would automatically return undef. For example: .Sp .Vb 2 \& country_code2code(\*(Aqbo\*(Aq,LOCALE_CODE_ALPHA_2,LOCALE_CODE_ALPHA_2); \& => undef .Ve .Sp This doesn't seem like reasonable behavior, so it has been changed to allow the same code set: .Sp .Vb 2 \& country_code2code(\*(Aqbo\*(Aq,LOCALE_CODE_ALPHA_2,LOCALE_CODE_ALPHA_2); \& => \*(Aqbo\*(Aq .Ve .Sp Note that if an invalid code is passed in, undef will still be returned: .Sp .Vb 2 \& country_code2code(\*(Aqbol\*(Aq,LOCALE_CODE_ALPHA_2,LOCALE_CODE_ALPHA_2); \& => undef .Ve .IP "\fBAdded many semi-private routines\fR" 4 .IX Item "Added many semi-private routines" Previous versions had only two semi-private routines: rename_country and alias_code which had the ability to modify the internal data in a couple very limited ways. It was requested (in an anonymous posting by someone named Steve and also by Steve Hay) that better support for modifying internal data, so a full set of routines were added. .Sp The full set of routines includes: .Sp .Vb 4 \& rename_country \& rename_language \& rename_currency \& rename_script \& \& add_country \& add_language \& add_currency \& add_script \& \& delete_country \& delete_language \& delete_currency \& delete_script \& \& add_country_alias \& add_language_alias \& add_currency_alias \& add_script_alias \& \& delete_country_alias \& delete_language_alias \& delete_currency_alias \& delete_script_alias \& \& rename_country_code \& rename_language_code \& rename_currency_code \& rename_script_code \& \& add_country_code_alias \& add_language_code_alias \& add_currency_code_alias \& add_script_code_alias \& \& delete_country_code_alias \& delete_language_code_alias \& delete_currency_code_alias \& delete_script_code_alias .Ve .IP "\fBNew aliases\fR" 4 .IX Item "New aliases" Added \*(L"\s-1UK\*(R"\s0 alias. Steve Hay .SH "VERSION 3.01 (2010\-02\-15; sbeck)" .IX Header "VERSION 3.01 (2010-02-15; sbeck)" .IP "\fBFixed Makefile.PL and Build.PL\fR" 4 .IX Item "Fixed Makefile.PL and Build.PL" They now install as core modules as they are supposed to. Reported in \&\s-1RT 54526\s0 .SH "VERSION 3.00 (2010\-02\-10; sbeck)" .IX Header "VERSION 3.00 (2010-02-10; sbeck)" \&\s-1NEW CODE\s0(s) .IP "\fB(*) New maintainer\fR" 4 .IX Item "(*) New maintainer" From 1997 to 2004, Locale::Codes was maintained by Neil Bowers. Unfortunately, no updates were made from June 2004 to January 2010. During that time, a number of changes have been made to the standards since then, so the data included was out-of-date. .Sp I contacted Neil to get his permission to assume maintenance of the module, and he kindly agreed. .IP "\fB(*) (!) All codes are generated from standards\fR" 4 .IX Item "(*) (!) All codes are generated from standards" All of the values returned by the various functions are now values directly from the standards. This means that the values returned in the 2.xx series are not necessarily the same as the values returned here. .Sp As an example, the \s-1ISO 3166\s0 standard which lists country codes refers to the country associated with the code \*(L"bo\*(R" as \*(L"Bolivia, Plurinational State of\*(R", so that is what is returned. In the 2.xx series, \*(L"Bolivia\*(R" was returned. Also, the country names vary from one standard to another. So the code \*(L"bol\*(R" which is maintained by the United Nations returns the name of the country as \*(L"Bolivia (Plurinational State of)\*(R". Some common aliases have been added, so you can still request a code associated with a county name \*(L"Bolivia\*(R". .Sp Since the data comes from the standards, some \*(L"incorrect\*(R" values are no longer supported. For example, 2.07 treated \*(L"Zaire\*(R" as an alias for \&\*(L"Congo\*(R", but the country changed it's name, and \*(L"Zaire\*(R" is not in the standard, so it has been dropped in 3.00. .IP "\fBAdded new codeset(s)\fR" 4 .IX Item "Added new codeset(s)" \&\s-1FIPS 10\s0 country codes (requested in \s-1RT 1755\s0) .Sp Alpha\-3 and Term language codes (requested in \s-1RT 11730\s0) .Sp Numeric currency codes (requested in \s-1RT 18797\s0) .IP "\fB(*) (!) Locale::Script changed\fR" 4 .IX Item "(*) (!) Locale::Script changed" In 2.xx, Locale::Script assigned scripts to country codes, which is \s-1NOT\s0 how it is done currently in the standards. It appears that an older version of \s-1ISO 15924\s0 did this, but I haven't found an old version to confirm that, and in any case, that is not the case in the current standards. .Sp As a result, the Locale::Script module is completely incompatible with the 2.xx version with respect to the types of codes it supports. None of the old codes will work. .IP "\fBAdded missing functions\fR" 4 .IX Item "Added missing functions" I've added in some functions which were \*(L"missing\*(R" previously (since there was only one set of codes supported, the code2code functions didn't apply): .Sp .Vb 2 \& language_code2code \& currency_code2code .Ve .Sp so the interfaces for each type of codes are consistent. .IP "\fB(!) Dropped support for _alias_code\fR" 4 .IX Item "(!) Dropped support for _alias_code" In Locale::Country, _alias_code was an allowed, but deprecated function which was documented to be supported in the 2.xx series. I've removed it. .IP "\fB(!) All functions return the standard value\fR" 4 .IX Item "(!) All functions return the standard value" code2country (and other equivalent functions) 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 differ based on the \s-1CODESET\s0) .IP "\fB(!) rename_country function altered\fR" 4 .IX Item "(!) rename_country function altered" The rename_country function from 2.07 would guess the \s-1CODESET\s0 (unlike all other functions which used a default of \s-1LOCALE_CODE_ALPHA_2\s0). The guess can cause problems since (with the addition of \s-1FIPS\s0) codes may appear in different codesets for different countries. The behavior has been changed to be the same as other functions (default to \&\s-1LOCALE_CODE_ALPHA_2\s0). .SH "VERSION 2.07 (2004\-06\-10; neilb)" .IX Header "VERSION 2.07 (2004-06-10; neilb)" Made \f(CW$_\fR local in the initialization code for each module change back-propagated from Perl distribution .PP Removed two non \s-1ISO\-8859\-1\s0 characters from language names change back-propagated from Perl distribution .PP Added the following aliases, with a test case for each \- Burma added to Myanmar \- French Southern and Antarctic Lands to French Southern Territories patch from \s-1TJ\s0 Mather .PP \&\*(L"Canadian Dollar\*(R" was misspelled as \*(L"Candian Dollar\*(R" \- noted by Nick Cabatoff, patch from Michael Hennecke .PP Changes to Locale::Country reflecting changes in \s-1ISO 3166\s0 \- added Aland Islands (ax, ala, 248) \- \s-1YUGOSLAVIA\s0 is now \s-1SERBIA AND MONTENEGRO\s0 \s-1YU\s0 => \s-1CS\s0 \s-1YUG\s0 => \s-1SCG\s0 891 => 891 (unchanged) (\s-1YUGOSLAVIA\s0 retained as an alias) \- \s-1EAST TIMOR\s0 changed to TIMOR-LESTE (old name retained as an alias) \- three letter code for Romania changed from \s-1ROM\s0 to \s-1ROU\s0 .PP \&\s-1ZAIRE\s0 is now \s-1CONGO, THE DEMOCRATIC REPUBLIC OF THE\s0 \s-1ZR\s0 => \s-1CD\s0 \s-1ZAR\s0 => \s-1COD\s0 180 => 180 (unchanged) (\s-1ZAIRE\s0 retained as alias) .SH "VERSION 2.06 (2002\-07\-15; neilb)" .IX Header "VERSION 2.06 (2002-07-15; neilb)" The four modules which have data after _\|_DATA_\|_ weren't closing the \&\s-1DATA\s0 filehandle after reading from it, which they should. Bug and patch from Steve Hay. .SH "VERSION 2.05 (2002\-07\-08; neilb)" .IX Header "VERSION 2.05 (2002-07-08; neilb)" Added three letter codes for the countries that were missing them. Patch from \s-1TJ\s0 Mather. .PP Documentation bug: one of the examples used => where the lvalue was a constant, which isn't allowed, unless you put the () with the constant to force the right interpretation. Pointed out by \s-1TJ\s0 Mather and \s-1MYT.\s0 .PP Updated the \s-1URL\s0 for the appendix in the \s-1CIA\s0 world factbook. Patch from \s-1TJ\s0 Mather. .SH "VERSION 2.04 (2002\-05\-23; neilb)" .IX Header "VERSION 2.04 (2002-05-23; neilb)" Updated according to changes in \s-1ISO 3166\-1\s0 described in \s-1ISO 3166\-1\s0 newsletters V\-4 and V\-5, dated 2002\-05\-20: \- Kazakstan is now \*(L"Kazakhstan\*(R" \- Macau is now \*(L"Macao\*(R" The old names are retained as aliases. .PP The alpha\-2 and alpha\-3 codes for East Timor have changed: tp \-> tl tmp \-> tls the numeric code stays 626. If you want to support the old codes, you can use the semi-private function \fBalias_code()\fR. .SH "VERSION 2.03 (2002\-03\-24; neilb)" .IX Header "VERSION 2.03 (2002-03-24; neilb)" Fixed a typo in the alias for the Vatican, reported (with patch) by Philip Newton. .PP Added \*(L"Moldova\*(R" as an alias for \*(L"Moldova, Republic of\*(R" .PP Updated Makefile.PL to include \s-1AUTHOR\s0 and \s-1ABSTRACT\s0 .SH "VERSION 2.02 (2002\-03\-09; neilb)" .IX Header "VERSION 2.02 (2002-03-09; neilb)" Added semi-private routine \fBrename_country()\fR to Locale::Country, based on a patch from Iain Chalmers. .PP Added test rename.t for the above function. .PP Renamed _alias_code to be alias_code. Have retained the old name for backwards compatibility. Will remove it when the major version number next changes. .SH "VERSION 2.01 (2002\-02\-18; neilb)" .IX Header "VERSION 2.01 (2002-02-18; neilb)" Split the documentation for all modules into separate pod files. .PP Made sure all =over were =over 4; some were other values. .PP The \fBcode2code()\fR methods had one more shift than was needed. .SH "VERSION 2.00 (2002\-02\-17; neilb)" .IX Header "VERSION 2.00 (2002-02-17; neilb)" Created Locale::Script which provides an interface to the \s-1ISO\s0 codes for identification of scripts (writing scripts, rather than perl style scripts). The codes are defined by \s-1ISO 15924,\s0 which is currently in final draft. Thanks to Jarkko for pointing out this new standard. All three code sets are supported, and a test-suite added. .PP Added support for country name variants to Locale::Country, so that country2code('\s-1USA\s0') country2code('United States') country2code('United States of America') will all return 'us'. This had been in the \s-1LIMITATIONS\s0 section since the first version. Patch from \s-1TJ\s0 Mather with additional variants from me. Added test-cases for these. .PP Added \s-1VERSION\s0 to Locale::Constants. Thanks to Jarkko for pointing that it was missing. .PP Should really have bumped major version with previous release, since there was a change to the \s-1API.\s0 .SH "VERSION 1.06 (2001\-03\-04; neilb)" .IX Header "VERSION 1.06 (2001-03-04; neilb)" Added Locale::Constants, which defines three symbols for identifying which codeset is being used: .PP .Vb 3 \& LOCALE_CODE_ALPHA_2 \& LOCALE_CODE_ALPHA_3 \& LOCALE_CODE_NUMERIC .Ve .PP Updated Locale::Country to support all three code sets defined by \s-1ISO 3166.\s0 This was requested by Keith Wall. I haven't added multiple codeset support to the other modules yet \- I'll wait until someone asks for them. .SH "VERSION 1.05 (2001\-02\-13; neilb)" .IX Header "VERSION 1.05 (2001-02-13; neilb)" Added Locale::Currency, contribution from Michael Hennecke. .PP Added test suite for it (t/currency.t) and added test cases to t/all.t for the all_* functions. .SH "VERSION 1.04 (2000\-12\-21; neilb)" .IX Header "VERSION 1.04 (2000-12-21; neilb)" Fixed very minor typos from 1.03! .SH "VERSION 1.03 (2000\-12\-??; neilb)" .IX Header "VERSION 1.03 (2000-12-??; neilb)" Updated Locale::Country: \- fixed spelling of a few countries \- added link to a relevant page from \s-1CIA\s0 world factbook .PP Updated Locale::Language: \- fixed typo in the documentation (\s-1ISO 939\s0 should be 639) .SH "VERSION 1.02 (2000\-05\-04; neilb)" .IX Header "VERSION 1.02 (2000-05-04; neilb)" Updated Locale::Country and Locale::Language to reflect changes in the relevant \s-1ISO\s0 standards. These mainly reflect languages which are new to the relevant standard, and changes in the spelling of some country names. .PP Added official URLs for the standards to the \s-1SEE ALSO\s0 sections of the doc for each module. .PP Thanks to Jarkko Hietaniemi for pointing me at the pages with latest versions of \s-1ISO 3166\s0 and 639. .SH "VERSION 1.00 (1998\-03\-09; neilb)" .IX Header "VERSION 1.00 (1998-03-09; neilb)" Added \fBLocale::Country::_alias_code()\fR so that 'uk' can be added as the code for \*(L"United Kingdom\*(R", if you want it. This was prompted by Ed Jordan. .PP Added a new test suite for handling this case, and extended the existing test-suite to include testing of the case where 'uk' hasn't been defined as a valid code. .SH "VERSION 0.003 (1997\-05\-09; neilb)" .IX Header "VERSION 0.003 (1997-05-09; neilb)" First public release to \s-1CPAN\s0 .SH "SEE ALSO" .IX Header "SEE ALSO" Locale::Codes .SH "AUTHOR" .IX Header "AUTHOR" See Locale::Codes for full author history. .PP Currently maintained by Sullivan Beck (sbeck@cpan.org). .SH "COPYRIGHT" .IX Header "COPYRIGHT" .Vb 2 \& Copyright (c) 2001\-2010 Neil Bowers \& Copyright (c) 2010\-2018 Sullivan Beck .Ve .PP This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.