5 Locale::Codes::Changes - details changes to Locale::Codes
9 This describes the changes made to modules in the Locale-Codes
10 distribution. Major changes are marked with asterisks (*). For the
11 most part, all modules have remained backward compatible at every
12 release, but occasionally a change is made which is backward
13 incompatible. These are marked with an exclamation mark (!).
15 As of 3.00, the codes are autogenerated from the standards. With each
16 release, codes will be re-generated and tested to see if any code
17 changed. Any time there are any changes to the codes, it will be
18 flagged below with a change: NEW CODE(s).
20 I intend to check for new codes four times a year (March, June,
21 September, December). I will also check on request, so if a code
22 changes that you use, feel free to contact me. Any time there are new
23 codes, I will add them to the module and release a new version.
25 =head1 VERSION 3.18 ()
27 =head1 VERSION 3.17 (2011-06-28)
33 =item B<Added new types of codes>
35 Added Language Extension codes (langext) and Language Variation codes
36 (langvar) as defined in the IANA language registry.
38 =item B<Added new codeset(s)>
40 Added language codes from ISO 639-5
42 Added language/script codes from the IANA language subtag
47 Fixed an uninitialized value warning. RT 67438
49 Fixed the return value for the all_XXX_codes and all_XXX_names functions. RT 69100
51 =item B<Reorganized code>
53 Reorganized modules to move Locale::MODULE to Locale::Codes::MODULE to
54 allow for cleaner future additions. The original four modules (Locale::Language,
55 Locale::Currency, Locale::Country, Locale::Script) will continue to work, but
56 all new sets of codes will be added in the Locale::Codes namespace.
60 =head1 VERSION 3.16 (2011-03-01; sbeck)
64 =head1 VERSION 3.15 (2010-12-02; sbeck)
72 Added version number to Makefile.PL/Build.PL requirement
73 for POD testing modules. RT 62247
75 Changed 'use vars' to 'our'
79 =head1 VERSION 3.14 (2010-09-28; sbeck)
87 Stripped out some HTML that got included with some codes.
91 =head1 VERSION 3.13 (2010-06-04; sbeck)
95 =head1 VERSION 3.12 (2010-04-06; sbeck)
101 =item B<Reorganized code>
103 Renamed test.pl to testfunc.pl to avoid causing an error
104 when built as part of perl.
108 =head1 VERSION 3.11 (2010-03-01; sbeck)
114 =item B<Added new codeset(s)>
116 Added the IANA domain names to Country
120 Fixed a problem that produced warnings with perl 5.11.5.
125 =head1 VERSION 3.10 (2010-02-18; sbeck)
131 =item B<Reorganized code>
133 Moved support files into the Locale::Codes namespace.
135 The work done in each of the Locale::XXX modules was virtually
136 identical to each other. It has all been moved to a central module and
137 the Locale::XXX modules are now just wrappers.
139 =item B<(!) Changed XXX_code2code behavior slightly>
141 In previous versions, passing in the same code set for both code set
142 arguments would automatically return undef. For example:
144 country_code2code('bo',LOCALE_CODE_ALPHA_2,LOCALE_CODE_ALPHA_2);
147 This doesn't seem like reasonable behavior, so it has been changed
148 to allow the same code set:
150 country_code2code('bo',LOCALE_CODE_ALPHA_2,LOCALE_CODE_ALPHA_2);
153 Note that if an invalid code is passed in, undef will still be
156 country_code2code('bol',LOCALE_CODE_ALPHA_2,LOCALE_CODE_ALPHA_2);
159 =item B<Added many semi-private routines>
161 Previous versions had only two semi-private routines: rename_country
162 and alias_code which had the ability to modify the internal data in
163 a couple very limited ways. It was requested (in an anonymous posting
164 by someone named Steve and also by Steve Hay) that better support
165 for modifying internal data, so a full set of routines were added.
167 The full set of routines includes:
190 delete_language_alias
191 delete_currency_alias
199 add_country_code_alias
200 add_language_code_alias
201 add_currency_code_alias
202 add_script_code_alias
204 delete_country_code_alias
205 delete_language_code_alias
206 delete_currency_code_alias
207 delete_script_code_alias
211 Added "UK" alias. Steve Hay
215 =head1 VERSION 3.01 (2010-02-15; sbeck)
219 =item B<Fixed Makefile.PL and Build.PL>
221 They now install as core modules as they are supposed to. Reported in
226 =head1 VERSION 3.00 (2010-02-10; sbeck)
232 =item B<New maintainer>
234 From 1997 to 2004, Locale::Codes was maintained by Neil
235 Bowers. Unfortunately, no updates were made from June 2004 to January
236 2010. During that time, a number of changes have been made to the
237 standards since then, so the data included was out-of-date.
239 I contacted Neil to get his permission to assume maintenance of
240 the module, and he kindly agreed.
242 =item B<(*) (!) All codes are generated from standards>
244 All of the values returned by the various functions are now values
245 directly from the standards. This means that the values returned in
246 the 2.xx series are not necessarily the same as the values returned
249 As an example, the ISO 3166 standard which lists country codes refers
250 to the country associated with the code "bo" as "Bolivia,
251 Plurinational State of", so that is what is returned. In the 2.xx
252 series, "Bolivia" was returned. Also, the country names vary from one
253 standard to another. So the code "bol" which is maintained by the
254 United Nations returns the name of the country as "Bolivia
255 (Plurinational State of)". Some common aliases have been added, so you
256 can still request a code associated with a county name "Bolivia".
258 Since the data comes from the standards, some "incorrect" values are
259 no longer supported. For example, 2.07 treated "Zaire" as an alias for
260 "Congo", but the country changed it's name, and "Zaire" is not in the
261 standard, so it has been dropped in 3.00.
263 =item B<Added new codeset(s)>
265 FIPS 10 country codes (requested in RT 1755)
267 Alpha-3 and Term language codes (requested in RT 11730)
269 Numeric currency codes (requested in RT 18797)
271 =item B<(*) (!) Locale::Script changed>
273 In 2.xx, Locale::Script assigned scripts to country codes, which is NOT
274 how it is done currently in the standards. It appears that an older version
275 of ISO 15924 did this, but I haven't found an old version to confirm
276 that, and in any case, that is not the case in the current standards.
278 As a result, the Locale::Script module is completely incompatible with
279 the 2.xx version with respect to the types of codes it supports. None of
280 the old codes will work.
282 =item B<Added missing functions>
284 I've added in some functions which were "missing" previously (since there was
285 only one set of codes supported, the code2code functions didn't apply):
290 so the interfaces for each type of codes are consistent.
292 =item B<(!) Dropped support for _alias_code>
294 In Locale::Country, _alias_code was an allowed, but deprecated function
295 which was documented to be supported in the 2.xx series. I've removed it.
297 =item B<(!) All functions return the standard value>
299 code2country (and other equivalent functions) now returns the name of
300 the country specified in the standard (if the different standards
301 refer to the country by different variations in the name, the results
302 will differ based on the CODESET)
304 =item B<(!) rename_country function altered>
306 The rename_country function from 2.07 would guess the CODESET (unlike
307 all other functions which used a default of LOCALE_CODE_ALPHA_2). The
308 guess can cause problems since (with the addition of FIPS) codes may
309 appear in different codesets for different countries. The behavior has
310 been changed to be the same as other functions (default to
311 LOCALE_CODE_ALPHA_2).
315 =head1 VERSION 2.07 (2004-06-10; neilb)
317 Made $_ local in the initialization code for each module
318 change back-propagated from Perl distribution
320 Removed two non ISO-8859-1 characters from language names
321 change back-propagated from Perl distribution
323 Added the following aliases, with a test case for each
324 - Burma added to Myanmar
325 - French Southern and Antarctic Lands to
326 French Southern Territories
329 "Canadian Dollar" was misspelled as "Candian Dollar"
330 - noted by Nick Cabatoff, patch from Michael Hennecke
332 Changes to Locale::Country reflecting changes in ISO 3166
333 - added Aland Islands (ax, ala, 248)
334 - YUGOSLAVIA is now SERBIA AND MONTENEGRO
337 891 => 891 (unchanged)
338 (YUGOSLAVIA retained as an alias)
339 - EAST TIMOR changed to TIMOR-LESTE
340 (old name retained as an alias)
341 - three letter code for Romania changed from ROM to ROU
343 ZAIRE is now CONGO, THE DEMOCRATIC REPUBLIC OF THE
346 180 => 180 (unchanged)
347 (ZAIRE retained as alias)
349 =head1 VERSION 2.06 (2002-07-15; neilb)
351 The four modules which have data after __DATA__ weren't closing the
352 DATA filehandle after reading from it, which they should. Bug and
353 patch from Steve Hay.
355 =head1 VERSION 2.05 (2002-07-08; neilb)
357 Added three letter codes for the countries that were missing
358 them. Patch from TJ Mather.
360 Documentation bug: one of the examples used => where the
361 lvalue was a constant, which isn't allowed, unless you
362 put the () with the constant to force the right interpretation.
363 Pointed out by TJ Mather and MYT.
365 Updated the URL for the appendix in the CIA world factbook.
366 Patch from TJ Mather.
368 =head1 VERSION 2.04 (2002-05-23; neilb)
370 Updated according to changes in ISO 3166-1 described
371 in ISO 3166-1 newsletters V-4 and V-5, dated 2002-05-20:
372 - Kazakstan is now "Kazakhstan"
373 - Macau is now "Macao"
374 The old names are retained as aliases.
376 The alpha-2 and alpha-3 codes for East Timor have changed:
379 the numeric code stays 626. If you want to support the old
380 codes, you can use the semi-private function alias_code().
382 =head1 VERSION 2.03 (2002-03-24; neilb)
384 Fixed a typo in the alias for the Vatican, reported (with patch)
387 Added "Moldova" as an alias for "Moldova, Republic of"
389 Updated Makefile.PL to include AUTHOR and ABSTRACT
391 =head1 VERSION 2.02 (2002-03-09; neilb)
393 Added semi-private routine rename_country() to Locale::Country,
394 based on a patch from Iain Chalmers.
396 Added test rename.t for the above function.
398 Renamed _alias_code to be alias_code. Have retained the old
399 name for backwards compatibility. Will remove it when the
400 major version number next changes.
402 =head1 VERSION 2.01 (2002-02-18; neilb)
404 Split the documentation for all modules into separate pod files.
406 Made sure all =over were =over 4; some were other values.
408 The code2code() methods had one more shift than was needed.
410 =head1 VERSION 2.00 (2002-02-17; neilb)
412 Created Locale::Script which provides an interface to the ISO codes
413 for identification of scripts (writing scripts, rather than perl style
414 scripts). The codes are defined by ISO 15924, which is currently in
415 final draft. Thanks to Jarkko for pointing out this new standard.
416 All three code sets are supported, and a test-suite added.
418 Added support for country name variants to Locale::Country,
421 country2code('United States')
422 country2code('United States of America')
423 will all return 'us'. This had been in the LIMITATIONS section since
424 the first version. Patch from TJ Mather with additional variants from
425 me. Added test-cases for these.
427 Added VERSION to Locale::Constants. Thanks to Jarkko for
428 pointing that it was missing.
430 Should really have bumped major version with previous release,
431 since there was a change to the API.
433 =head1 VERSION 1.06 (2001-03-04; neilb)
435 Added Locale::Constants, which defines three symbols for identifying
436 which codeset is being used:
442 Updated Locale::Country to support all three code sets defined by ISO
443 3166. This was requested by Keith Wall. I haven't added multiple
444 codeset support to the other modules yet - I'll wait until someone
447 =head1 VERSION 1.05 (2001-02-13; neilb)
449 Added Locale::Currency, contribution from Michael Hennecke.
451 Added test suite for it (t/currency.t) and added test cases
452 to t/all.t for the all_* functions.
454 =head1 VERSION 1.04 (2000-12-21; neilb)
456 Fixed very minor typos from 1.03!
458 =head1 VERSION 1.03 (2000-12-??; neilb)
460 Updated Locale::Country:
461 - fixed spelling of a few countries
462 - added link to a relevant page from CIA world factbook
464 Updated Locale::Language:
465 - fixed typo in the documentation (ISO 939 should be 639)
467 =head1 VERSION 1.02 (2000-05-04; neilb)
469 Updated Locale::Country and Locale::Language to reflect changes in the
470 relevant ISO standards. These mainly reflect languages which are new
471 to the relevant standard, and changes in the spelling of some country
474 Added official URLs for the standards to the SEE ALSO sections of the
477 Thanks to Jarkko Hietaniemi for pointing me at the pages with latest
478 versions of ISO 3166 and 639.
480 =head1 VERSION 1.00 (1998-03-09; neilb)
482 Added Locale::Country::_alias_code() so that 'uk' can be added as the
483 code for "United Kingdom", if you want it. This was prompted by Ed
486 Added a new test suite for handling this case, and extended the
487 existing test-suite to include testing of the case where 'uk' hasn't
488 been defined as a valid code.
490 =head1 VERSION 0.003 (1997-05-09; neilb)
492 First public release to CPAN
500 See Locale::Codes for full author history.
502 Currently maintained by Sullivan Beck (sbeck@cpan.org).
506 Copyright (c) 2001-2010 Neil Bowers
507 Copyright (c) 2010-2011 Sullivan Beck
509 This module is free software; you can redistribute it and/or
510 modify it under the same terms as Perl itself.