Why?

Today I learned: printf(1) is locale-dependent.

$ printf %f 0.1
-bash: printf: 0.1: invalid number

$ printf %f 0,1
0,1

$ LANG=C;printf %f 0.1
0.1

Why, oh fucking why?

Leave a Reply

Your email address will not be published. Required fields are marked *