Bug 261024 - regdomain.xml refers to non-existent http://ftp.ics.uci.edu/pub/ietf/http/related/iso3166.txt for a complete list of country/region codes
Summary: regdomain.xml refers to non-existent http://ftp.ics.uci.edu/pub/ietf/http/rel...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL: https://github.com/freebsd/freebsd-sr...
Keywords:
Depends on:
Blocks: handbook-2022
  Show dependency treegraph
 
Reported: 2022-01-08 03:50 UTC by Graham Perrin
Modified: 2023-08-31 01:49 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Pau Amma 2022-01-08 04:50:13 UTC
(In reply to Graham Perrin from comment #0)
https://ftp.iana.org/tz/tzdb-2016g/iso3166.tab maybe?
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-01-08 11:32:34 UTC
(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.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-11-30 15:55:52 UTC
<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.