1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Set LC_NUMERIC=C when --robot is used.

It is to ensure that floating point numbers
will always have a dot as the decimal separator.
This commit is contained in:
Lasse Collin 2010-01-24 22:45:14 +02:00
parent 0dd6d00766
commit ef68dd4a92

View file

@ -222,6 +222,10 @@ parse_real(args_info *args, int argc, char **argv)
// --robot // --robot
case OPT_ROBOT: case OPT_ROBOT:
opt_robot = true; opt_robot = true;
// This is to make sure that floating point numbers
// always have a dot as decimal separator.
setlocale(LC_NUMERIC, "C");
break; break;
case 'z': case 'z':