<https://github.com/freebsd/freebsd-src/blob/67591c284e34dbfc653674ad2d9f3974f083fc5b/etc/regdomain.xml#L1085-L1092> lines 1089–1090 in 2008: > http://ftp.ics.uci.edu/pub/ietf/http/related/iso3166.txt > has the list of codes. <http://ftp.ics.uci.edu/> is down, <https://downforeveryoneorjustme.com/ftp.ics.uci.edu?proto=http> not just me. <https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes> refers to (amongst other things) <https://www.iso.org/iso-3166-country-codes.html> however unless I'm missing something, there's no comparable .txt file.
(In reply to Graham Perrin from comment #0) https://ftp.iana.org/tz/tzdb-2016g/iso3166.tab maybe?
(In reply to PauAmma from comment #1) Thank you. Re: this part of the in-code comment: > XXX this table is incomplete I guess that the original intention was – essentially – for whoever sees the file to: * consider also looking _elsewhere_ – not necessarily at a plain text file, although plain text can be nice. The definitive point of reference might be: ISO - ISO 3166 — Country Codes <https://www.iso.org/iso-3166-country-codes.html> * Online Browsing Platform <https://www.iso.org/obp/ui/#search/code/> ---- To complement the alternative that you found, a few more resources. Some are historical. Discovered indirectly via <https://github.com/iiab/internet-in-a-box/issues/28#issuecomment-16304781>: * <https://www.geonames.org/countries/> – I like its clarity; and via <https://www.geonames.org/about.html>, the recent modifications <https://www.geonames.org/recent-changes.html> seem to be reasonable (I sped through a handful of the linked pages) – legible in e.g. lynx. <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements> Via <https://web.archive.org/web/20131008001533/http://www.iso.org/iso/country_codes/country_codes>: <https://web.archive.org/web/20131110195618/http://www.iso.org/iso/home/standards/country_codes/country_names_and_code_elements_txt.htm> then <https://web.archive.org/web/20131205204150/http://www.iso.org/iso/home/standards/country_codes/country_names_and_code_elements_txt.htm>, which is also legible in lynx. <https://github.com/topics/iso3166-2?o=desc&s=updated> interesting, although I couldn't find anything like a plain text listing in any of the repositories.
<https://docs.freebsd.org/en/books/handbook/book/#_setting_the_correct_region> directs readers to regdomain.xml for correctness. Then, regdomain.xml describes itself as (partly) incomplete, and directs readers to the iso3166.txt file for completeness. Then, the iso3166.txt file does not exist. Let's make this file xml useful, not a source of frustration :-) I'll: * remove the dead link * add links to the GeoNames page, and this bug report.