-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extra::test::test_lots_of_files appears to fail if there are any non-utf8 file names in the top 4 sublevels of / #9406
Comments
if I'm not entirely sure what the status of that is, though. |
It shouldn't silently fail to work if there are non-UTF-8 file paths. Assuming all paths can be stored in strings is incorrect on Rust's part. It's not true on Windows either, because NTFS uses UCS2 and doesn't enforce valid Unicode. |
Oh yeah this test specifically would ignore the condition, but the condition handler wouldn't be installed by default by the glob function. |
This should be covered by #7225. |
Based on the result of the proposed PR, this is still an issue. |
Complete test case for this issue
|
I have filed a new issue specifically about |
Correctly handle unescape warnings fixes rust-lang#9405 changelog: Fix ICE when format literals raise compiler warnings
It runs
glob("/*/*/*/*").skip(10000)
, which traverses a lot of files and if any of them have non utf8 names, this fails theis_utf8
assertion (presumably when constructing the path).The text was updated successfully, but these errors were encountered: