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 davispuh
Recipients davispuh, ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-06-02.01:42:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464831723.42.0.99461789411.issue27179@psf.upfronthosting.co.za>
In-reply-to
Content
I looked at #27048 and indeed it's affected by this bug, it happens to me too (I've non-ASCII symbols in %PATH%) and this my patch fixes that.


on my system without patch

> python -c "from distutils import _msvccompiler; _msvccompiler._get_vc_env('')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "P:\Python35\lib\distutils\_msvccompiler.py", line 92, in _get_vc_env
    universal_newlines=True,
  File "P:\Python35\lib\subprocess.py", line 629, in check_output
    **kwargs).stdout
  File "P:\Python35\lib\subprocess.py", line 698, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "P:\Python35\lib\subprocess.py", line 1055, in communicate
    stdout = self.stdout.read()
  File "P:\Python35\lib\encodings\cp1257.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x83 in position 50: character maps to <undefined>

with my patch

> python -c "from distutils import _msvccompiler; _msvccompiler._get_vc_env('')"
>
no error
History
Date User Action Args
2016-06-02 01:42:03davispuhsetrecipients: + davispuh, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, steve.dower
2016-06-02 01:42:03davispuhsetmessageid: <1464831723.42.0.99461789411.issue27179@psf.upfronthosting.co.za>
2016-06-02 01:42:03davispuhlinkissue27179 messages
2016-06-02 01:42:03davispuhcreate