Issue 1197218: test_locale fix on modern linux (original) (raw)
At least on this Linux (Ubuntu Hoary), test_locale fails because en_US is not a valid locale. en_US.UTF-8 is, tho.
This patch makes the test_locale try each of en_US.UTF-8, en_US.US-ASCII, and en_US in turn, failing only if none of them work.