Skip to content
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

Avoid using decimal comma on machines with different locale #282

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dskloetd
Copy link
Collaborator

Motivation

This error was reported:

/Users/daviddalbusco/.config/dfx/identity/snsdemo8/identity.pem transfer --amount 5001570,49997000 --fee 0,00001000 jg6qm-uw64t-m6ppo-oluwn-ogr5j-dc5pm-lgy2p-eh6px-hebcd-5v73i-nqe
error: Invalid value "5001570,49997000" for '--amount <AMOUNT>': Failed to parse tokens as unsigned integer

which seems to happen because a awk output a decimal comma instead of a decimal point.

This PR might fix it for the line where the error happened but I'm not sure (actually I would expect it) if there are other places that would have the same problem.

@dskloetd dskloetd changed the title Avoid using decimal comma on mahcines with different locale Avoid using decimal comma on machines with different locale Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant