Force C locale.

This addresses the same issue as c97cc8fa, along with  #17225, #17226
using a different approach.
Status Job ID Name Coverage
  External
passed cdash

passed ghostflow-branch-check

passed ghostflow-commit-check

passed paraview-amber8-linux-static-release+mpi+offscreen+opengl1+osmesa+python

failed paraview-bigmac-osx-shared-debug+clang+gui+python+qt4

passed paraview-ista-osx-shared-release+gui+kits+python

passed paraview-megas-linux-release+catalyst

passed paraview-nemesis-windows-shared-release+gui+kits+mpi+python

passed paraview-nemesis-windows-shared-release+gui+mpi

passed paraview-taanab-linux-shared-release+mpi+python

passed paraview-tylo-windows-shared-release+gui+python+python3+tbb

passed paraview-vall-linux-shared-debug+doc+extdeps+gui+mpi+python+python3

passed paraview-amber8-linux-static-release+mpi+offscreen+opengl1+osmesa+python

passed paraview-amber8-linux-static-release+mpi+offscreen+opengl1+osmesa+python

00:08:09

pending paraview-amber8-linux-static-release+mpi+offscreen+opengl1+osmesa+python
failed paraview-bigmac-osx-shared-debug+clang+gui+python+qt4

failed paraview-bigmac-osx-shared-debug+clang+gui+python+qt4

01:02:38

pending paraview-bigmac-osx-shared-debug+clang+gui+python+qt4
pending paraview-ista-osx-shared-release+gui+kits+python
passed paraview-ista-osx-shared-release+gui+kits+python

00:36:43

passed paraview-ista-osx-shared-release+gui+kits+python

pending paraview-megas-linux-release+catalyst
passed paraview-megas-linux-release+catalyst

passed paraview-megas-linux-release+catalyst

01:04:33

passed paraview-nemesis-windows-shared-release+gui+kits+mpi+python

00:33:01

pending paraview-nemesis-windows-shared-release+gui+kits+mpi+python
passed paraview-nemesis-windows-shared-release+gui+kits+mpi+python

passed paraview-nemesis-windows-shared-release+gui+mpi

00:22:57

pending paraview-nemesis-windows-shared-release+gui+mpi
passed paraview-nemesis-windows-shared-release+gui+mpi

passed paraview-taanab-linux-shared-release+mpi+python

passed paraview-taanab-linux-shared-release+mpi+python

00:02:53

pending paraview-taanab-linux-shared-release+mpi+python
passed paraview-tylo-windows-shared-release+gui+python+python3+tbb

passed paraview-tylo-windows-shared-release+gui+python+python3+tbb

00:32:21

pending paraview-tylo-windows-shared-release+gui+python+python3+tbb
pending paraview-vall-linux-shared-debug+doc+extdeps+gui+mpi+python+python3
passed paraview-vall-linux-shared-debug+doc+extdeps+gui+mpi+python+python3

00:38:06

passed paraview-vall-linux-shared-debug+doc+extdeps+gui+mpi+python+python3