-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Force the use of '.' as decimal separator. #10878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This solves issues occuring with a different decimal operator and keeps the commandline interface consistent for all locales . E.g. `zfs set quota=0.5T` Signed-off-by: Felix Neumärker <xdch47@posteo.de>
Explanation: Comparision to a decimal point as Line 1553 in 6fffc88
or assumptions are made: Line 749 in 6fffc88
Line 1527 in 6fffc88
Line 551 in 6fffc88
|
Rather than forcing a decimal point, shouldn't those comparisons be properly localized? |
Small impacts are the print-out ( |
would be an option as well, but make everything more difficult to maintain and also changes the command input depending on locale. imo it would feel odd to use -- shell tools are handling that different [zsh printf supports both (!)], however the
we hit the issue ( |
I agree that it would be nice to fully localize everything, but that's definitely a larger job. It wouldn't surprise me if we find a fair number of these assumptions scattered throughout the code base. Forcing the use of a decimal separator sounds like a reasonable way to handle this until it can be localized. |
just want to add, that fully localization has to stop at some point e.g for command arguments. |
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 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 openzfs#10878
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 openzfs#10878
This solves issues occuring with a different decimal operator and
keeps the commandline interface consistent for all locales .
E.g.
zfs set quota=0.5T
Signed-off-by: Felix Neumärker xdch47@posteo.de
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.