Message118533
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. |
|
Date |
User |
Action |
Args |
2010-10-13 16:00:40 | belopolsky | set | recipients:
+ belopolsky, vstinner |
2010-10-13 16:00:39 | belopolsky | set | messageid: <1286985639.97.0.582513938646.issue10087@psf.upfronthosting.co.za> |
2010-10-13 16:00:24 | belopolsky | link | issue10087 messages |
2010-10-13 16:00:23 | belopolsky | create | |
|