Open Nitemice opened 5 years ago
I don't know anything about Windows. 'charmap' is not a codec I've ever heard of. I remember cmd from when I was little. I don't know what a powershell is. That said, I don't keep up with the latest minutia of python minor version release changes. I'm slowly migrating to 3.6 from 3.5, maybe this charmap thing is a 3.7 concept that I just haven't encountered yet.
I'm inclined to close this as wontfix unless:
Anyone interested?
"charmap" is not a 3.7 thing. charmap_encode()
is undocumented but seems to be used for handling encodings such as Windows' cp1252 - see characters it handles at https://github.com/python/cpython/blob/master/Lib/encodings/cp1252.py. 🎈 - (U+1F388) cannot be encoded here hence the need for UTF-8. Don't know enough about Python character encoding to be able elegantly handle pipes/Powershell, etc. Windows!
Similar to #335, but some of the conditions & error are different.
Steps to reproduce:
Birthday Extravaganza!! 🎈🎈
at 9 p.m.gcalcli --nocolor agenda 12am 11:59pm
gcalcli agenda 9pm 11pm | findstr Birth*
gcalcli-4.0.0a5, Python 3.7.0, Microsoft Windows 10 (1803), using cmd, or powershell
The workaround mentioned in #335 (setting
PYTHONIOENCODING=utf8
) works here too, but I thought it was worth reporting anyway, as I'm running Py3.