Quoting Samuel Thibault (sthibault@debian.org):
> FERRINO Maxime, le Wed 12 Sep 2012 12:17:20 +0400, a écrit :
> > I just tried it again in Virtualbox with an iso image I just downloaded
> > (DVD1, here :
> > http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/). I tried to
> > pick other languages than French, but I had the same problem : After picking
> > "Other" and then "Indian Ocean", "Reunion" is not in the list.
>
> It seems RE is missing from
> localechooser/debian/templates
> isn't it? It seems nothing in the source code tells that it is in the
> Indian Ocean.
regionmap, in localechooser's top directory should:
.../...
FR Europe
.../...
CC Indian Ocean
CX Indian Ocean
TF Indian Ocean
HM Indian Ocean
IO Indian Ocean
KM Indian Ocean
MG Indian Ocean
MU Indian Ocean
MV Indian Ocean
RE Indian Ocean
SC Indian Ocean
YT Indian Ocean
.../...
This file is used by the mktemplates.continent script to build
templates at package build time.
And....I think I know what's happening. Look at this code in mktemplates.continent:
open (L, $iso3166tab) || die "$iso3166tab: $!";
while (<L>) {
chomp;
my ($code, $country) = split(' ', $_, 2);
# Bubulle 5/25/2004 We should find a way to avoid enforcing ASCII here
if ($country !~ /^[-_A-Za-z0-9 !@#$%^&Z*()-_+={};:'",.<>?|]+$/) {
print STDERR "I: skipping country $country; not ASCII\n";
next;
}
# Escape commas
$country =~ s/,/\\,/g;
$code2country{$code}=$country;
$country2code{$country}=$code;
$codes_listed{$code}=0;
}
I'm afraid that, when localechooser is built, we drop all countries
that have non ASCII characters in their *English* name in ISO-3166.
And, guess what:
<iso_3166_entry
alpha_2_code="RE"
alpha_3_code="REU"
numeric_code="638"
name="Réunion" />
If I'm correct, we should also be missing:
<iso_3166_entry
alpha_2_code="BL"
alpha_3_code="BLM"
numeric_code="652"
name="Saint Barthélemy" />
(it should be in Caribbean)
Probably the same for Åland Island, etc.
Frankly speaking, I have no idea why, in 2004, we decided to drop
choices with non ASCII characters. I guess this is because of some
limitation of debconf or po-debconf at that time. Or maybe because we
have interfaces where only "pure" ASCII is possible.
We need someone to test-builta D-I image with localechooser having
this filtering commented....and check what happens..:)
Attachment:
signature.asc
Description: Digital signature