On Wed, Jan 13, 2016 at 4:53 PM, Gisle Vanem <gvanem_at_yahoo.no> wrote:
> David Drysdale:
>
>> Ah, I hit that same problem on Windows recently and didn't realize
>> there had been a
>> patch floated for it (and so I invented my own way around it).
>
> I've also used such a patch for a long time; works fine.
OK, I've pushed it to master.
> Besides from that, I have only 1 patch to the acountry.c
> program:
>
> @@ -341,6 +345,7 @@
> { 232, "er", "Eritrea" },
> { 233, "ee", "Estonia" },
> { 231, "et", "Ethiopia" },
> + { 65281, "eu", "European Union" }, /* 127.0.255.1 */
> { 238, "fk", "Falkland Islands" },
> { 234, "fo", "Faroe Islands" },
> { 242, "fj", "Fiji" },
> @@ -470,6 +475,7 @@
> { 706, "so", "Somalia" },
> { 710, "za", "South Africa" },
> { 239, "gs", "South Georgia" },
> + { 728, "ss", "South Sudan" },
> { 724, "es", "Spain" },
> { 144, "lk", "Sri Lanka" },
> { 654, "sh", "St. Helena" },
>
>
> ---------
>
> 'South Sudan' is a new country since I wrote that program.
> And EU too (?). Any more?
>
> --gv
After pulling a list from https://www.iso.org/obp/ui/#search I
end up a diff as attached below -- which has a couple of things
worth checking:
- "eu" isn't on the list that I retrieved
- Code 891 has changed from "cs" to "rs"
Also, does acountry still work for you? I get "Could not
contact DNS servers" ...
D.
---------
diff --git a/acountry.c b/acountry.c
index 1fe750c9cc83..3c056716470e 100644
--- a/acountry.c
+++ b/acountry.c
@@ -299,6 +299,7 @@ static const struct search_list country_list[] = {
{ 60, "bm", "Bermuda" },
{ 64, "bt", "Bhutan" },
{ 68, "bo", "Bolivia" },
+ { 535, "bq", "Bonaire, Sint Eustatius and Saba" },
{ 70, "ba", "Bosnia & Herzegowina" },
{ 72, "bw", "Botswana" },
{ 74, "bv", "Bouvet Island" },
@@ -308,6 +309,7 @@ static const struct search_list country_list[] = {
{ 100, "bg", "Bulgaria" },
{ 854, "bf", "Burkina Faso" },
{ 108, "bi", "Burundi" },
+ { 132, "cv", "Cabo Verde" },
{ 116, "kh", "Cambodia" },
{ 120, "cm", "Cameroon" },
{ 124, "ca", "Canada" },
@@ -328,6 +330,7 @@ static const struct search_list country_list[] = {
{ 384, "ci", "Cote d'Ivoire" },
{ 191, "hr", "Croatia" },
{ 192, "cu", "Cuba" },
+ { 531, "cw", "Curaçao" },
{ 196, "cy", "Cyprus" },
{ 203, "cz", "Czech Republic" },
{ 208, "dk", "Denmark" },
@@ -362,6 +365,7 @@ static const struct search_list country_list[] = {
{ 312, "gp", "Guadeloupe" },
{ 316, "gu", "Guam" },
{ 320, "gt", "Guatemala" },
+ { 831, "gg", "Guernsey" },
{ 324, "gn", "Guinea" },
{ 624, "gw", "Guinea-Bissau" },
{ 328, "gy", "Guyana" },
@@ -369,7 +373,7 @@ static const struct search_list country_list[] = {
{ 334, "hm", "Heard & Mc Donald Islands" },
{ 336, "va", "Vatican City" },
{ 340, "hn", "Honduras" },
- { 344, "hk", "Hong kong" },
+ { 344, "hk", "Hong Kong" },
{ 348, "hu", "Hungary" },
{ 352, "is", "Iceland" },
{ 356, "in", "India" },
@@ -377,10 +381,12 @@ static const struct search_list country_list[] = {
{ 364, "ir", "Iran" },
{ 368, "iq", "Iraq" },
{ 372, "ie", "Ireland" },
+ { 833, "im", "Isle of Man" },
{ 376, "il", "Israel" },
{ 380, "it", "Italy" },
{ 388, "jm", "Jamaica" },
{ 392, "jp", "Japan" },
+ { 832, "je", "Jersey" },
{ 400, "jo", "Jordan" },
{ 398, "kz", "Kazakhstan" },
{ 404, "ke", "Kenya" },
@@ -415,6 +421,7 @@ static const struct search_list country_list[] = {
{ 583, "fm", "Micronesia" },
{ 498, "md", "Moldova" },
{ 492, "mc", "Monaco" },
+ { 499, "me", "Montenegro" },
{ 496, "mn", "Mongolia" },
{ 500, "ms", "Montserrat" },
{ 504, "ma", "Morocco" },
@@ -452,24 +459,30 @@ static const struct search_list country_list[] = {
{ 642, "ro", "Romania" },
{ 643, "ru", "Russia" },
{ 646, "rw", "Rwanda" },
+ { 652, "bl", "Saint Barthélemy" },
+ { 654, "sh", "Saint Helena, Ascension and Tristan da Cunha"},
{ 659, "kn", "Saint Kitts & Nevis" },
{ 662, "lc", "Saint Lucia" },
+ { 663, "mf", "Saint Martin (French part)" },
+ { 666, "pm", "Saint Pierre and Miquelon" },
{ 670, "vc", "Saint Vincent" },
{ 882, "ws", "Samoa" },
{ 674, "sm", "San Marino" },
{ 678, "st", "Sao Tome & Principe" },
{ 682, "sa", "Saudi Arabia" },
{ 686, "sn", "Senegal" },
- { 891, "cs", "Serbia and Montenegro" },
+ { 891, "rs", "Serbia" },
{ 690, "sc", "Seychelles" },
{ 694, "sl", "Sierra Leone" },
{ 702, "sg", "Singapore" },
+ { 534, "sx", "Sint Maarten (Dutch part)" },
{ 703, "sk", "Slovakia" },
{ 705, "si", "Slovenia" },
{ 90, "sb", "Solomon Islands" },
{ 706, "so", "Somalia" },
{ 710, "za", "South Africa" },
{ 239, "gs", "South Georgia" },
+ { 728, "ss", "South Sudan" },
{ 724, "es", "Spain" },
{ 144, "lk", "Sri Lanka" },
{ 654, "sh", "St. Helena" },
@@ -481,11 +494,11 @@ static const struct search_list country_list[] = {
{ 752, "se", "Sweden" },
{ 756, "ch", "Switzerland" },
{ 760, "sy", "Syrian Arab Republic" },
- { 626, "tl", "Timor-Leste" },
{ 158, "tw", "Taiwan" },
{ 762, "tj", "Tajikistan" },
{ 834, "tz", "Tanzania" },
{ 764, "th", "Thailand" },
+ { 626, "tl", "Timor-Leste" },
{ 768, "tg", "Togo" },
{ 772, "tk", "Tokelau" },
{ 776, "to", "Tonga" },
Received on 2016-01-14