Call setlocale() when the language is set.

This is done only for the benefit of pcre,
so it can set character classes and ranges,
and convert between upper and lower case.
Also a test of me pushing a change into Chris' repository.