This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, vstinner
Date 2010-10-13.16:00:23
SpamBayes Score 6.0204424e-05
Marked as misclassified No
Message-id <1286985639.97.0.582513938646.issue10087@psf.upfronthosting.co.za>
In-reply-to
Content
The issue is clearly with using print() for bytes' output: 

        if len(args) == 1:
            print(cal.formatyearpage(datetime.date.today().year, **optdict))

I am not sure, however how this can be fixed because calendar interface allows user to specify the encoding to be used for HTML and that encoding may not be the same or even compatible with sys.stdout encoding.

I would suggest adding -o/--output option to calendar CLI to specify the output file and make it required when specified encoding is not "compatible" with that of sys.stdout.  What constitutes "compatible" still needs to be defined.
History
Date User Action Args
2010-10-13 16:00:40belopolskysetrecipients: + belopolsky, vstinner
2010-10-13 16:00:39belopolskysetmessageid: <1286985639.97.0.582513938646.issue10087@psf.upfronthosting.co.za>
2010-10-13 16:00:24belopolskylinkissue10087 messages
2010-10-13 16:00:23belopolskycreate