Force `LC_ALL` to be `C` in non windows systems. Fixes #3261.

Force `LC_ALL` to be `C` in non windows systems. Fixes #3261.