# HG changeset patch # User Paul Boddie # Date 1438891245 -7200 # Node ID 62b87431494268f29355575f078b079bd1f1dde2 # Parent d1bcf16e6972a16d7b734e131876c32131afd54f Treat standard output as a UTF-8 stream. diff -r d1bcf16e6972 -r 62b874314942 tools/make_freebusy.py --- a/tools/make_freebusy.py Thu Aug 06 22:00:11 2015 +0200 +++ b/tools/make_freebusy.py Thu Aug 06 22:00:45 2015 +0200 @@ -21,6 +21,7 @@ this program. If not, see . """ +from codecs import getwriter from imiptools.data import get_window_end, Object from imiptools.dates import get_default_timezone from imiptools.profile import Preferences @@ -97,7 +98,8 @@ else: store.set_freebusy_for_other(user, fb, participant) else: + f = getwriter("utf-8")(sys.stdout) for item in fb: - print "\t".join(item.as_tuple(strings_only=True)) + print >>f, "\t".join(item.as_tuple(strings_only=True)) # vim: tabstop=4 expandtab shiftwidth=4