Skip to content

Commit

Permalink
Override any locale environment variable
Browse files Browse the repository at this point in the history
In one case reported on IRC, having LC_CTYPE=da_DK.UTF8 caused mpstat to report "Middel" instead of "Average".

We had LANG=POSIX but that was obviously not enough. Using LC_ALL overrides all local variables and gets us the desired result.

http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html
  • Loading branch information
alq666 authored and Remi Hakim committed Nov 6, 2013
1 parent 00bc3f8 commit 0d41c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/datadog-agent-deb/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stderr_logfile=NONE
priority=999
startsecs=2
user=dd-agent
environment=LANG=POSIX
environment=LC_ALL=POSIX

[program:forwarder]
command=/usr/bin/dd-forwarder
Expand Down

0 comments on commit 0d41c24

Please sign in to comment.