Message171472
| Author |
maker |
| Recipients |
christian.heimes, eric.araujo, ezio.melotti, maker, r.david.murray |
| Date |
2012年09月28日.14:15:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348841703.39.0.297385423449.issue16083@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Note: on python3, the error is
File "/[...]/cpython/Lib/genericpath.py", line 41, in isdir
st = os.stat(s)
TypeError: embedded NUL character
(same exception but different message.)
I don't know where to start fixing, because the documentation for os.stat says "Perform the equivalent of a stat() system call on the given path.", which is not exactly the correct behavior in this case.
I see that
$ printf "/00円" | xargs stat
stat()s correctly the root directory, and
$ printf "/00円tmp" | xargs stat
stat()s still '/'. So, is this a bug of os.stat?
Noising some coredevs. |
|