Force the use of '.' as decimal separator.
This solves issues occurring with a different decimal operator and keeps the command line interface consistent for all locales . E.g. `zfs set quota=0.5T` Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Felix Neumärker <xdch47@posteo.de> Closes #10878
This commit is contained in:
parent
a74259cea0
commit
c2c7ca0d6d
|
@ -182,6 +182,7 @@ main(int argc, char **argv)
|
|||
int error, c;
|
||||
|
||||
(void) setlocale(LC_ALL, "");
|
||||
(void) setlocale(LC_NUMERIC, "C");
|
||||
(void) textdomain(TEXT_DOMAIN);
|
||||
|
||||
opterr = 0;
|
||||
|
|
|
@ -8468,6 +8468,7 @@ main(int argc, char **argv)
|
|||
char **newargv;
|
||||
|
||||
(void) setlocale(LC_ALL, "");
|
||||
(void) setlocale(LC_NUMERIC, "C");
|
||||
(void) textdomain(TEXT_DOMAIN);
|
||||
|
||||
opterr = 0;
|
||||
|
|
|
@ -10229,6 +10229,7 @@ main(int argc, char **argv)
|
|||
char **newargv;
|
||||
|
||||
(void) setlocale(LC_ALL, "");
|
||||
(void) setlocale(LC_NUMERIC, "C");
|
||||
(void) textdomain(TEXT_DOMAIN);
|
||||
srand(time(NULL));
|
||||
|
||||
|
|
Loading…
Reference in New Issue