aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zpool/zpool_main.c
diff options
context:
space:
mode:
authorxdch47 <[email protected]>2020-09-09 19:14:04 +0200
committerGitHub <[email protected]>2020-09-09 10:14:04 -0700
commitc2c7ca0d6d6d4e4351f8819afc2ae4d8b804672e (patch)
tree10cd730ddcc013a2c4d95a76afe5cb49de5c749b /cmd/zpool/zpool_main.c
parenta74259cea063704622b7f3329bef3eadb13ab8b7 (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/zpool/zpool_main.c')
-rw-r--r--cmd/zpool/zpool_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index adbb78a8e..cd1c66323 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -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));