Dear Maintainer, I compiled and ran this program: with Ada.Locales; with Ada.Text_IO; procedure Lang is use Ada.Locales; use Ada.Text_IO; begin Put_Line (Country (1) & Country (2)); Put_Line (Language (1) & Language (2) & Language (3)); end Lang; The output is: $ ./lang ZZ und $ locale LANG=fo_FO.ISO-8859-1 [...] LC_ALL= $ The expected output was: $ ./lang FO fae $ Thanks, Jacob
Ada.Locales.Country_Code is a thin wrapper to locales.c.
void c_get_country_code (char4 p) {
char *r = "ZZ";
for (; *r != '\0'; p++, r++)
*p = *r;
}
This looks like a forgotten placeholder.