Skip to content
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

Refactor of readdir to not fail as much #17034

Merged
merged 1 commit into from
Sep 7, 2014
Merged

Conversation

retep998
Copy link
Member

@retep998 retep998 commented Sep 5, 2014

Fixes #15279
Based on #13338

@thestinger
Copy link
Contributor

AFAIK, NTFS and the low-level Windows API use UCS2 path names, not UTF-16. It's incorrect to simply skip over the file names.

@retep998
Copy link
Member Author

retep998 commented Sep 5, 2014

The proper solution is of course #12056 but this is a stopgap measure so that the test suite passes in the meantime. I'd argue it is better to skip invalid UTF-16 than fail the entire task.

@alexcrichton
Copy link
Member

I'm a little wary of just skipping files in a directory, it's sure to bite someone later on down the road. For now could this return an error for the entire readdir instead of ignoring utf-16? Also, could you add a test for this?

@retep998 retep998 changed the title Skip paths that are not utf-16 when scanning directories. Refactor of readdir to not fail as much Sep 6, 2014
@retep998
Copy link
Member Author

retep998 commented Sep 6, 2014

PR has been modified to return an error instead of merely skipping over the invalid paths.

bors added a commit that referenced this pull request Sep 7, 2014
@bors bors closed this Sep 7, 2014
@bors bors merged commit d3ec067 into rust-lang:master Sep 7, 2014
@retep998 retep998 deleted the glob-fix branch September 8, 2014 20:36
lnicola pushed a commit to lnicola/rust that referenced this pull request Apr 20, 2024
… r=lnicola

Document enabling the flatpak rust SDK extension

Just having `org.freedesktop.Sdk.Extension.rust-stable` and `org.freedesktop.Sdk.Extension.llvm15` installed is not enough.
`/usr/lib/sdk/rust-stable/bin` at least needs to be added to the `PATH`.

In the case of VSCodium [ide-flatpak-wrapper](https://github.com/noonsleeper/ide-flatpak-wrapper) in included to do this.
lnicola pushed a commit to lnicola/rust that referenced this pull request Apr 20, 2024
… r=lnicola

Document enabling the flatpak rust SDK extension

Just having `org.freedesktop.Sdk.Extension.rust-stable` and `org.freedesktop.Sdk.Extension.llvm15` installed is not enough.
`/usr/lib/sdk/rust-stable/bin` at least needs to be added to the `PATH`.

In the case of VSCodium [ide-flatpak-wrapper](https://github.com/noonsleeper/ide-flatpak-wrapper) in included to do this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error running make check-fast on Windows
4 participants