pango_language_get_default doesn't work with per-thread locales
Looking at the code, pango_language_get_default() won't do the right thing in the presence of uselocale(), since only remembers a single, global value. Arguably, it should use thread-local storage.
Unlikely to matter in practice though