This fixes a problem when launching GDIS from a computer with a LANG and/or LC_ALL global variable set as other than C.
In some language, specific format for numbers causes GDIS to parse input files incorrectly.
For example, in French, a decimal number is defined by digits separated by a coma.
This result in the following incorrect display:
note the comma for numbers as well as truncation to zero (Energy is -73,000000 eV).
Also the structure is not loaded properly and have a wrong number of atoms.
For information, this is the proper display:
The BUG is fixed by setting the local globally to "C", which should be cross-platform.
In the future, however, we should save the original locale in order to have proper translations for GDIS.
This fixes a problem when launching GDIS from a computer with a LANG and/or LC_ALL global variable set as other than C. In some language, specific format for numbers causes GDIS to parse input files incorrectly.
For example, in French, a decimal number is defined by digits separated by a coma. This result in the following incorrect display: note the comma for numbers as well as truncation to zero (Energy is -73,000000 eV). Also the structure is not loaded properly and have a wrong number of atoms. For information, this is the proper display:
The BUG is fixed by setting the local globally to "C", which should be cross-platform. In the future, however, we should save the original locale in order to have proper translations for GDIS.