It's done because various modules rely on parsing Unix commands and these commands are difficult to parse in different languages.
The proposal has been made that if LANG is set in the environment, we possibly not set LANG, though we'll need to consider implications. It may be that only certain modules need to set the LANG to C, so it may warrant reading history and audit specifically what changes may have to occur. On Thu, Apr 10, 2014 at 9:43 PM, Alistair Bayley <[email protected]> wrote: > We've tracked down a bug in our ansible-driven build to the LANG > environment variable being explicitly set to "C". I'm wondering why this is > done i.e. why modify it at all? Why not just use the environment of the > user/account executing the ansible script? It was confusing, because > running the same commands manually from the ansible user account did not > reproduce the fault. > > I found this post: > https://groups.google.com/forum/#!topic/ansible-project/HD3yxPfsnzg > which says that it is done to avoid encoding issues; which is ironic, as > it has caused us encoding issues... > > We've set module_lang = en_NZ.UTF-8 in ansible.cfg for now. > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/7aa2587f-423f-450c-87bd-d3b107d1978f%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/7aa2587f-423f-450c-87bd-d3b107d1978f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwVWp%3DFeB9ZQo_RgeuEVBnwrCwK6YGNV%3DT%3DdPN-Lz%2B%3DBA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
