diff options
author | xdch47 <[email protected]> | 2020-09-09 19:14:04 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-09-09 10:26:04 -0700 |
commit | 17e2fd3bfdacaad771463bc0d6189e624bca2912 (patch) | |
tree | 30e1404f125b19712a901600c8acd9baa3417a2c /cmd/mount_zfs | |
parent | 55de40fe47ceadabedb47dcfd9402535b15e5c43 (diff) |
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 <[email protected]>
Signed-off-by: Felix Neumärker <[email protected]>
Closes #10878
Diffstat (limited to 'cmd/mount_zfs')
-rw-r--r-- | cmd/mount_zfs/mount_zfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c index 87d2ccadc..ed9f167cc 100644 --- a/cmd/mount_zfs/mount_zfs.c +++ b/cmd/mount_zfs/mount_zfs.c @@ -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; |