diff options
author | Joseph Graham <joseph@fibreglass.tunachunks> | 2013-09-03 11:02:20 +0100 |
---|---|---|
committer | Joseph Graham <joseph@fibreglass.tunachunks> | 2013-09-03 11:02:20 +0100 |
commit | 0e74a77317f8dd55b2882a0601e1d7aa6d3bb215 (patch) | |
tree | 856711456955240f7b91766360e70e8a56f34f35 | |
parent | efb39cbf312a4f7f4ce2cec2dd6528cde314297b (diff) |
Set the locale so pbot can handle utf-8
-rw-r--r-- | rc.d/pbot-ng | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rc.d/pbot-ng b/rc.d/pbot-ng index f451519..77c085e 100644 --- a/rc.d/pbot-ng +++ b/rc.d/pbot-ng @@ -3,6 +3,12 @@ . /etc/rc.conf . /etc/rc.d/functions +# Set the locale +export LANG=${LOCALE:-C} +if [[ -r /etc/locale.conf ]]; then + parse_envfile /etc/locale.conf "${localevars[@]}" +fi + declare -a pids while read -r line |