Skip Menu |

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

Report information
The Basics
Id: 7520
Status: resolved
Priority: 0/
Queue: Locale-SubCountry

People
Owner: Nobody in particular
Requestors: jacobj [...] hotmail.com
Cc:
AdminCc:

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



Subject: Missing states in India for 1.34 ( was present in 1.23)
In Locale SubCountry version 1.34 FIPS codes for West Bengal & Maharashtra two states in India are missing. They used to be 16 & 28 in version 1.23. #!/usr/bin/perl -w use strict; use Locale::SubCountry; my $india = new Locale::SubCountry('INDIA'); my $state_iso; my $state_fips; foreach($india->all_full_names) { $state_fips = $india->FIPS10_4_code($india->code($_)); $state_iso = $india->code($_); print "FIPS: $state_fips: ISO: $state_iso : $_\n"; } In version 1.34: FIPS: 01: ISO: AN : Andaman and Nicobar FIPS: 02: ISO: AP : Andhra Pradesh FIPS: 30: ISO: AR : Arunachal Pradesh FIPS: 03: ISO: AS : Assam FIPS: 04: ISO: BR : Bihar FIPS: 05: ISO: CH : Chandigarh FIPS: unknown: ISO: CT : Chhattisgarh FIPS: 06: ISO: DN : Dadra and Nagar Hav FIPS: 32: ISO: DD : Daman and Diu FIPS: 07: ISO: DL : Delhi FIPS: 33: ISO: GA : Goa FIPS: 09: ISO: GJ : Gujarat FIPS: 10: ISO: HR : Haryana FIPS: 11: ISO: HP : Himachal Pradesh FIPS: 12: ISO: JK : Jammu and Kashmir FIPS: unknown: ISO: JH : Jharkhand FIPS: 19: ISO: KA : Karnataka FIPS: 13: ISO: KL : Kerala FIPS: 14: ISO: LD : Lakshadweep FIPS: 15: ISO: MP : Madhya Pradesh FIPS: unknown: ISO: MH : Maharashtra FIPS: 17: ISO: MN : Manipur FIPS: 18: ISO: ML : Meghalaya FIPS: 31: ISO: MZ : Mizoram FIPS: 20: ISO: NL : Nagaland FIPS: 21: ISO: OR : Orissa FIPS: 22: ISO: PY : Pondicherry FIPS: 23: ISO: PB : Punjab FIPS: 24: ISO: RJ : Rajasthan FIPS: 29: ISO: SK : Sikkim FIPS: 25: ISO: TN : Tamil Nadu FIPS: 26: ISO: TR : Tripura FIPS: 27: ISO: UP : Uttar Pradesh FIPS: unknown: ISO: UL : Uttaranchal FIPS: unknown: ISO: WB : West Bengal In 1.23: FIPS: 01: ISO: AN : Andaman and Nicobar Islands FIPS: 02: ISO: AP : Andhra Pradesh FIPS: 30: ISO: AR : Arunachal Pradesh FIPS: 03: ISO: AS : Assam FIPS: 04: ISO: BR : Bihar FIPS: 05: ISO: CH : Chandigarh FIPS: 06: ISO: DN : Dadra and Nagar Haveli FIPS: 32: ISO: DD : Daman and Diu FIPS: 07: ISO: DL : Delhi FIPS: 33: ISO: GA : Goa FIPS: 09: ISO: GJ : Gujarat FIPS: 10: ISO: HR : Haryana FIPS: 11: ISO: HP : Himachal Pradesh FIPS: 12: ISO: JK : Jammu and Kashmir FIPS: 19: ISO: KA : Karnataka FIPS: 13: ISO: KL : Kerala FIPS: 14: ISO: LD : Lakshadweep FIPS: 15: ISO: MP : Madhya Pradesh FIPS: 16: ISO: MM : Maharashtra FIPS: 17: ISO: MN : Manipur FIPS: 18: ISO: ML : Meghalaya FIPS: 31: ISO: MZ : Mizoram FIPS: 20: ISO: NL : Nagaland FIPS: 21: ISO: OR : Orissa FIPS: 22: ISO: PY : Pondicherry FIPS: 23: ISO: PB : Punjab FIPS: 24: ISO: RJ : Rajasthan FIPS: 29: ISO: SK : Sikkim FIPS: 25: ISO: TN : Tamil Nadu FIPS: 26: ISO: TR : Tripura FIPS: 27: ISO: UP : Uttar Pradesh FIPS: 28: ISO: W8 : West Bengal