Closed vadz closed 6 years ago
Interestingly enough, it passes under native Windows Python
That's surprising to me as well — sounds wrong that UTF-8 would be the correct choice for paths on Windows.
I'm as confused by the rest as you are. I wonder if it might actually be worth porting to Python 3… I guess it depends on your plans with bkl too.
Explicitly convert Unicode prefix to UTF-8.
Without this change, the test fails under Cygwin with
inside
mkdtemp()
itself (in/usr/lib/python2.7/tempfile.py
). Interestingly enough, it passes under native Windows Python, but this is probably because it doesn't use the sample implementation ofmkdtemp()
.However, with native Python I still get a warning:
that I have no idea how to avoid (and it happens with and without this change).
Finally, just to unburden of all my problems at once, I also get the completely mysterious
that I just chose to ignore because this is clearly some Cygwin weirdness, as the test passes just fine with the native Python (but if this tells you something, please let me know).