[Libreoffice-commits] dev-tools.git: cppcheck/cppcheck-report.sh

Maarten Hoes hoes.maarten at gmail.com
Mon Jan 26 12:33:32 PST 2015


 cppcheck/cppcheck-report.sh |   17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

New commits:
commit d7c8e6f5c3993dd3bea2dce1e983c7259f8db7c6
Author: Maarten Hoes <hoes.maarten at gmail.com>
Date:   Mon Jan 26 09:09:10 2015 +0100

    set LANG and LC_* to fix 'UnicodeEncodeError' when running from cron.
    
    Change-Id: Ibff06172c10a73048871f8569b083e39526828fd
    Reviewed-on: https://gerrit.libreoffice.org/14181
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cppcheck/cppcheck-report.sh b/cppcheck/cppcheck-report.sh
index 64706c4..67e8166 100755
--- a/cppcheck/cppcheck-report.sh
+++ b/cppcheck/cppcheck-report.sh
@@ -205,7 +205,22 @@ SENDEMAIL=~/source/buildbot/bin/sendEmail
 EMAIL_BODY=~/tmp/email_body
 # Dont forget to set SMTP_PWD in your ~/.cppcheckrc !
 SMTP_PWD=
-export PYTHONIOENCODING=utf-8
+export PYTHONIOENCODING=UTF-8
+
+export LANG=en_US.UTF-8
+export LC_CTYPE="en_US.UTF-8"
+export LC_NUMERIC="en_US.UTF-8"
+export LC_TIME="en_US.UTF-8"
+export LC_COLLATE="en_US.UTF-8"
+export LC_MONETARY="en_US.UTF-8"
+export LC_MESSAGES="en_US.UTF-8"
+export LC_PAPER="en_US.UTF-8"
+export LC_NAME="en_US.UTF-8"
+export LC_ADDRESS="en_US.UTF-8"
+export LC_TELEPHONE="en_US.UTF-8"
+export LC_MEASUREMENT="en_US.UTF-8"
+export LC_IDENTIFICATION="en_US.UTF-8"
+export LC_ALL=en_US.UTF-8
 
 if [ -f ~/.cppcheckrc ]; then
     # override all default vars with entries in ~/.cppcheckrc


More information about the Libreoffice-commits mailing list