PIP does not appear to handle diacritics correctly.

Chris Angelico rosuav at gmail.com
Wed Sep 9 10:23:45 CEST 2015


On Wed, Sep 9, 2015 at 5:59 PM, Laszlo Lebrun via Python-list
<python-list at python.org> wrote:
> Whenever I start PIP, I get:
> "Fatal error in launcher: Unable to create process using '"C:\Users
> \BürgerGegenFluglärm\AppData\Local\Programs\Python\Python35-32
> \python.exe"  "C:\Users\B³rgerGegenFluglõrm\AppData\Local\Programs\Python
> \Python35-32\Scripts\pip.exe" '"
>
> Where the correct path is "C:\Users\BürgerGegenFluglärm\AppData..."
>
> The funny thing is that the message mentions the path twice, with
> different wrong codings.
> :-(

Peculiar. I don't know if it helps, but the first one seems to have
been encoded UTF-8 and then decoded CP437; and the second has been
encoded Latin-1 and decoded CP850.

>>> "BürgerGegenFluglärm".encode("utf-8").decode("437")
'BürgerGegenFluglärm'
>>> "BürgerGegenFluglärm".encode("iso-8859-1").decode("850")
'B³rgerGegenFluglõrm'

But why those particular encodings... weird.

ChrisA


More information about the Python-list mailing list