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:
parent
0dd6d00766
commit
ef68dd4a92
1 changed files with 4 additions and 0 deletions
|
@ -222,6 +222,10 @@ parse_real(args_info *args, int argc, char **argv)
|
|||
// --robot
|
||||
case OPT_ROBOT:
|
||||
opt_robot = true;
|
||||
|
||||
// This is to make sure that floating point numbers
|
||||
// always have a dot as decimal separator.
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
break;
|
||||
|
||||
case 'z':
|
||||
|
|
Loading…
Reference in a new issue