Command line arguments depend on locale
Richard W.M. Jones
rjones at redhat.com
Thu Jan 31 09:07:25 UTC 2013
On Thu, Jan 31, 2013 at 12:05:16AM +0100, Benny Amorsen wrote:
> This makes it difficult to call system commands. The only workaround is
> to set LC_ALL to a known-good locale, but then your users get no benefit
> from the translations of error messages and so on.
You should *always* set LC_ALL=C when running an external command from
another program (and most probably from a shell script too).
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
More information about the devel
mailing list