Skip to content

Commit

Permalink
Add test for LANG="C" override and duplicate locale entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Øvrum committed Apr 4, 2016
1 parent 7b86b61 commit b416652
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/i18n/text.d
Expand Up @@ -330,6 +330,14 @@ version(Posix)
assert(selectedLocales.empty);

environment["LANGUAGE"] = "en_US:en_GB:en_US:de_DE:en_GB";
assert(selectedLocales.empty); // $LANG = "C" overrides $LANGUAGE
environment.remove("LANG");
assert(selectedLocales.equal([
Locale("en", "US"),
Locale("en", "GB"),
Locale("en", "US"),
Locale("de", "DE"),
Locale("en", "GB")]));
}
}

Expand Down

0 comments on commit b416652

Please sign in to comment.