Adding changing locales to to C to avoid invalid number errors after merging pull request #cc18ec3