Closed richvdh closed 6 years ago
TIL all MacOS pythons are narrow (as are win32), so this becomes a royal pain for anyone trying to develop on MacOS (especially if they're working on emoji autocomplete in riot ;P)
I installed from git and it works sweet! Thank you very much!
TIL: some python builds don't support non-BMP characters in their strings: http://wordaligned.org/articles/narrow-python
The symptoms of this are things like:
Since we're only using unichr here to build a string which we're about to utf-8 encode, we could instead add utf-16 delegates, which apparently are handled correctly by
.encode("utf-8")
.In fact, given
.encode("utf-8")
handles utf-16 delegates, why are we bothering to unpack the utf-16 delegates at all?