-
Apparently only newer libcs define a C.UTF-8 locale (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636086). Notably, in the Freedesktop SDK there is no C.UTF-8 locale. This tests using "locale -a" if the C.UTF-8 locale is available, before selecting it. If it is not available, we try to find a reasonable fallback, preferring English locales in order to make it easier to share debug output in bug reports.
132e55c9