Skip to content

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

Open
juergen-vogel wants to merge 1 commit intorupa:masterfrom
juergen-vogel:master
Open

--posix option for awk call to avoid problems with locale settings#4
juergen-vogel wants to merge 1 commit intorupa:masterfrom
juergen-vogel:master

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