I've gone ahead and NMUed iso-codes to fix this bug. I also made the generation of the file a bit more robust. Patch attached.
-- see shy jo
diff -ur a/iso-codes-0.42/debian/changelog iso-codes-0.42/debian/changelog
--- a/iso-codes-0.42/debian/changelog 2005-01-10 17:25:52.000000000 -0500
+++ iso-codes-0.42/debian/changelog 2005-01-10 17:25:25.000000000 -0500
@@ -1,3 +1,15 @@
+iso-codes (0.42-1.1) unstable; urgency=low
+
+ * Emergency NMU to fix d-i.
+ * Fix call to iso3166tab.py (it needs a parameter), so iso_3166.tab
+ is no longer an empty file. Closes: #289765
+ * Decouple sort from iso3166tab.py call, so if the script fails in the
+ future, the build will fail too.
+ * Set LC_ALL=C when calling sort, just in case the build locale is
+ different.
+
+ -- Joey Hess <[EMAIL PROTECTED]> Mon, 10 Jan 2005 17:19:41 -0500
+
iso-codes (0.42-1) unstable; urgency=low
* iso_3166
diff -ur a/iso-codes-0.42/iso_3166/Makefile iso-codes-0.42/iso_3166/Makefile
--- a/iso-codes-0.42/iso_3166/Makefile 2004-06-15 16:59:48.000000000 -0400
+++ iso-codes-0.42/iso_3166/Makefile 2005-01-10 17:23:18.000000000 -0500
@@ -32,7 +32,9 @@
for d in ${SUBDIRS} ; do ${MAKE} -C $$d install ; done
iso_3166.tab: iso_3166.xml
- ./iso3166tab.py | sort > iso_3166.tab
+ ./iso3166tab.py $< > iso_3166.tab.new
+ LC_ALL=C sort < iso_3166.tab.new > iso_3166.tab
+ rm -f iso_3166.tab.new
iso_3166.pot: iso_3166.xml
../iso2pot.py --is-version $(VERSION) --comments alpha_3_code \
signature.asc
Description: Digital signature

