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
Fix Issue 19133 - core.exception.rangeerror@std/file.d(3812) #6805
Conversation
Thanks for your pull request and interest in making D better, @edi33416! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "stable + phobos#6805" |
a9a59e8
to
394bab7
Compare
How many times are we going to need to reinvent The commit that started it all, 5e88b67, is also not truthful in its commit message, as it was more than a refactoring and changed behavior. I suggest the following fix:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(see comment)
394bab7
to
cb1dd9f
Compare
Sorry, I got I'm pretty sure @edi33416 Did you test that this change works on Solaris? I don't think we have any CIs actually testing it on that system. |
cb1dd9f
to
5231820
Compare
Yes, you are right. I can use On Solaris, you don't have The correct way to find the length, I believe, is like the
@CyberShadow I didn't. I don't have a Solaris VM, and was counting on the CIs. I'll set one up |
5231820
to
e86df01
Compare
I don't think that's cross-platform / POSIX-correct... We can use it as an optimization for platforms where we know it aligns with the end of the filename, or when the
I don't think that's necessary as long as we stick to simple code that sticks to what's in POSIX. |
Yes, it does seem like an optimization. I misread the
LGTM |
@thewilsonator the failing |
I'm pretty sure that got fixed recently, this PR predates that I think. |
std/file.d: Clean-up unused imports after merging #6805 merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
No description provided.