To function well with character encodings glib needs to discover langinfo.h from libandroid-support. Test case: LC_ALL=C pkg-config --atleast-pkgconfig-version=0.1 should work and not give an error message: Conversion from character set 'C' to 'UTF-8' is not supported