]> granicus.if.org Git - python/commit
calculate_path() decodes the PYTHONPATH environment variable from the locale
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 20 Jun 2011 12:45:54 +0000 (14:45 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 20 Jun 2011 12:45:54 +0000 (14:45 +0200)
commit99563b1df835218fd61fe1c86930b49dd55044be
tree7adb4e45099ead94777bc6e19285d45aa4250ec4
parentd6b3840e7d8cce39996d365a8fd05a7849cbef63
calculate_path() decodes the PYTHONPATH environment variable from the locale
encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable
bytes as surrogates characters (PEP 383) instead of ignoring silently
the PYTHONPATH variable.
Modules/getpath.c