Package: iso-codes
Version: 3.75-1
Tags: patch

I have to convert a list of country names to ISO codes, but my script
is failing on Iran, North Korea, South Korea, Palestine, Russia, and
Syria. I submitted patches on the mailing list, but haven't gotten any
response: 
http://lists.alioth.debian.org/pipermail/pkg-isocodes-devel/2017-May/006860.html

The patches that I sent to the mailing list are attached.
From 0c746267be21153e6a74bc7321045b95c1fb4ea2 Mon Sep 17 00:00:00 2001
From: Alex Henrie <alexhenri...@gmail.com>
Date: Thu, 1 Jun 2017 13:24:58 -0600
Subject: [PATCH 1/5] Add 'Iran' as common name

---
 ChangeLog            | 3 +++
 data/iso_3166-1.json | 1 +
 2 files changed, 4 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 87dd0e62..f8ef2265 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@ iso-codes 3.76
 --------------
 UNRELEASED
 
+  [ ISO 3166-1 ]
+  * Add 'Iran' as common name
+
   [ ISO 3166-1 translations ]
   * French by Alban Vidal
 
diff --git a/data/iso_3166-1.json b/data/iso_3166-1.json
index 2834482c..5e0feda3 100644
--- a/data/iso_3166-1.json
+++ b/data/iso_3166-1.json
@@ -714,6 +714,7 @@
     {
       "alpha_2": "IR",
       "alpha_3": "IRN",
+      "common_name": "Iran",
       "name": "Iran, Islamic Republic of",
       "numeric": "364",
       "official_name": "Islamic Republic of Iran"
-- 
2.13.0

From 7dc3f34d43ef8eae0f065ee2f4f874350657531c Mon Sep 17 00:00:00 2001
From: Alex Henrie <alexhenri...@gmail.com>
Date: Thu, 1 Jun 2017 13:24:58 -0600
Subject: [PATCH 2/5] Add 'North Korea' and 'South Korea' as common names

---
 ChangeLog            | 1 +
 data/iso_3166-1.json | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f8ef2265..1855c821 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ UNRELEASED
 
   [ ISO 3166-1 ]
   * Add 'Iran' as common name
+  * Add 'North Korea' and 'South Korea' as common names
 
   [ ISO 3166-1 translations ]
   * French by Alban Vidal
diff --git a/data/iso_3166-1.json b/data/iso_3166-1.json
index 5e0feda3..edfacaf8 100644
--- a/data/iso_3166-1.json
+++ b/data/iso_3166-1.json
@@ -816,6 +816,7 @@
     {
       "alpha_2": "KR",
       "alpha_3": "KOR",
+      "common_name": "South Korea",
       "name": "Korea, Republic of",
       "numeric": "410"
     },
@@ -1216,6 +1217,7 @@
     {
       "alpha_2": "KP",
       "alpha_3": "PRK",
+      "common_name": "North Korea",
       "name": "Korea, Democratic People's Republic of",
       "numeric": "408",
       "official_name": "Democratic People's Republic of Korea"
-- 
2.13.0

From 7ee9c81d6d870ec14fbc9c50b2144fb9878c8853 Mon Sep 17 00:00:00 2001
From: Alex Henrie <alexhenri...@gmail.com>
Date: Thu, 1 Jun 2017 13:24:58 -0600
Subject: [PATCH 3/5] Add 'Palestine' as common name

---
 ChangeLog            | 1 +
 data/iso_3166-1.json | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 1855c821..8536cf1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ UNRELEASED
   [ ISO 3166-1 ]
   * Add 'Iran' as common name
   * Add 'North Korea' and 'South Korea' as common names
+  * Add 'Palestine' as common name
 
   [ ISO 3166-1 translations ]
   * French by Alban Vidal
diff --git a/data/iso_3166-1.json b/data/iso_3166-1.json
index edfacaf8..c12ca44d 100644
--- a/data/iso_3166-1.json
+++ b/data/iso_3166-1.json
@@ -1239,6 +1239,7 @@
     {
       "alpha_2": "PS",
       "alpha_3": "PSE",
+      "common_name": "Palestine",
       "name": "Palestine, State of",
       "numeric": "275",
       "official_name": "the State of Palestine"
-- 
2.13.0

From 0c610bdf892f833a024d4318d7c7b9ea6b744913 Mon Sep 17 00:00:00 2001
From: Alex Henrie <alexhenri...@gmail.com>
Date: Thu, 1 Jun 2017 13:24:58 -0600
Subject: [PATCH 4/5] Add 'Russia' as common name

---
 ChangeLog            | 1 +
 data/iso_3166-1.json | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 8536cf1b..91dba456 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ UNRELEASED
   * Add 'Iran' as common name
   * Add 'North Korea' and 'South Korea' as common names
   * Add 'Palestine' as common name
+  * Add 'Russia' as common name
 
   [ ISO 3166-1 translations ]
   * French by Alban Vidal
diff --git a/data/iso_3166-1.json b/data/iso_3166-1.json
index c12ca44d..d3de6938 100644
--- a/data/iso_3166-1.json
+++ b/data/iso_3166-1.json
@@ -1272,6 +1272,7 @@
     {
       "alpha_2": "RU",
       "alpha_3": "RUS",
+      "common_name": "Russia",
       "name": "Russian Federation",
       "numeric": "643"
     },
-- 
2.13.0

From 2905a201eec9b30fdd8b9be3070e99a585da531d Mon Sep 17 00:00:00 2001
From: Alex Henrie <alexhenri...@gmail.com>
Date: Thu, 1 Jun 2017 13:24:58 -0600
Subject: [PATCH 5/5] Add 'Syria' as common name

---
 ChangeLog            | 1 +
 data/iso_3166-1.json | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 91dba456..0a3f5195 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ UNRELEASED
   * Add 'North Korea' and 'South Korea' as common names
   * Add 'Palestine' as common name
   * Add 'Russia' as common name
+  * Add 'Syria' as common name
 
   [ ISO 3166-1 translations ]
   * French by Alban Vidal
diff --git a/data/iso_3166-1.json b/data/iso_3166-1.json
index d3de6938..4c6cab5a 100644
--- a/data/iso_3166-1.json
+++ b/data/iso_3166-1.json
@@ -1442,6 +1442,7 @@
     {
       "alpha_2": "SY",
       "alpha_3": "SYR",
+      "common_name": "Syria",
       "name": "Syrian Arab Republic",
       "numeric": "760"
     },
-- 
2.13.0

Reply via email to