Strings returned from g_get_language_names() can be empty
@ptomato
Submitted by Philip Chimento Link to original bug (#712395)
Description
Apparently "en_US:" (with a colon) is a value for the LANGUAGE environment variable that can occur in the wild:
g_get_language_names() doesn't handle this well, the returned array is:
[ "en_US", "en", "", "C" ]
There's nothing in the documentation of g_get_language_names() that says it can't return an empty string, but it's certainly unexpected.