Cool, you seem to start understand the problem :)
What about setting the LOCALE environment, if your tools respect this, it should work more reliable.
https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html
What about setting the LOCALE environment, if your tools respect this, it should work more reliable.
https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html