Command line arguments depend on locale

Kevin Kofler kevin.kofler at chello.at
Mon Feb 4 07:05:34 UTC 2013


Richard W.M. Jones wrote:
> You should *always* set LC_ALL=C when running an external command from
> another program (and most probably from a shell script too).

I think LC_NUMERIC is probably what's wanted in this case, not LC_ALL.

Still, command-line arguments depending on LC_NUMERIC (or worse, 
LC_MESSAGES, which would be entirely the wrong setting to key this off) is 
very broken.

        Kevin Kofler



More information about the devel mailing list