~chad.smith/lp2kanban/landscape-deploy

« back to all changes in this revision

Viewing changes to jenkins.sh

  • Committer: David Britton
  • Date: 2014-08-25 15:29:47 UTC
  • Revision ID: dpb@canonical.com-20140825152947-ewonxkkkgga2p9d8
Hopefully fixing the encoding error on kanban-sync (PYTHONIOENCODING)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    fi
18
18
fi
19
19
 
20
 
LANG=en_US.UTF-8 bin/py src/lp2kanban/bugs2cards.py -c ${1}.ini
 
20
# default encoding of stdout/stderr when not attached to a terminal is set to
 
21
# 'None'.  'PYTHONIOENCODING' overrides, could also be overridden in the
 
22
# python program by modifying 'sys.stdout.encoding' directly.  This feels
 
23
# cleaner.  Note setting LANG (which the terminal respects) wont fix this,
 
24
# since there is no terminal attached.
 
25
# --------
 
26
# See:
 
27
# - https://wiki.python.org/moin/PrintFails
 
28
# - https://stackoverflow.com/questions/1473577
 
29
# - https://stackoverflow.com/questions/492483
 
30
# - https://stackoverflow.com/questions/9932406
 
31
PYTHONIOENCODING="utf-8" bin/py src/lp2kanban/bugs2cards.py -c ${1}.ini
21
32
date "+END: %c"