Open sandy-fairsupply opened 12 months ago
Hi,
thanks for the bug report, I will check how to do that.
@sandy-fairsupply Since "Swaziland" does not appear in countries or former_countries but still is translations, this looks like a bug. Can you file one in the upstream repo : https://salsa.debian.org/iso-codes-team/iso-codes ?
I would, but I don't have a Salsa account which is a bit of a barrier for me. Also, I think I lack the experience in this domain to make a good report. Would you mind doing it?
Relevant documents:
N971 - Swaziland - Change of the full name and short name.xlsx
Curiously, it doesn't seem to be in ISO 3166-3 (although I don't have access to the official document). Maybe that's because it was just renamed, not dissolved.
I suspect the only way to deal with this kind of issue would be to consume the updates (like the one I linked to above), rather than exclusively importing the codes in bulk.
This library is intended to allow easy access to the debian upstream files so if there is any issue, it should be reported there.
I will make a bug report and see what they are saying.
@sandy-fairsupply Bur report created : https://salsa.debian.org/iso-codes-team/iso-codes/-/issues/46
Let's see what they will say.
Countries change names from time to time. For example, Swaziland changed its name to Eswatini in 2018, but kept their country code (SWZ). "Swaziland" doesn't appear in
countries
orformer_countries
, so it's not possible to look up the country code based on old data without a separate look-up table.It would be nice to have a mechanism for looking up countries by their former names.