]> granicus.if.org Git - python/commit
Fix for #8879.
authorBrian Curtin <brian.curtin@gmail.com>
Sun, 28 Nov 2010 23:59:46 +0000 (23:59 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Sun, 28 Nov 2010 23:59:46 +0000 (23:59 +0000)
commitfc889c48edc17b9502c0aef416ce2d003dbef4e6
tree88f633faaa267ca02024a06cae0849924bbfe730
parent1de911592ee52affd6b855d7325af46559f23407
Fix for #8879.
Amaury noticed that this was originally written in a way that would fail on
names that can't be encoded with the mbcs codec. Restructured the function
to work with wide names first then narrow names second, to fall in line
with the way other functions are written in posixmodule.c.
Lib/test/test_os.py
Modules/posixmodule.c