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

--posix option for awk call to avoid problems with locale settings #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juergen-vogel
Copy link

I had the problem that awk saved 0.9*l[i] with a comma instead of a floating point. As a consequence the python script failed with the error message

ValueError: invalid literal for float(): 18,9

By adding the posix option to the awk call we get sure that the right floating point is used despite of your locale configuration.

http://www.gnu.org/software/gawk/manual/html_node/Conversion.html

@rupa
Copy link
Owner

rupa commented Oct 15, 2013

Huh, what awk are you using that does this? This repo is outdated and obsolete, but this might be useful for z, which uses tons of awk itself.

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.

2 participants