Fix coverage on platforms where 'setlocale()' fails.