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
SR-9454: StringProtocol.lineRange(for:) returns invalid range on Linux #1841
Conversation
@swift-ci test |
We may also need to examine other places that use |
I filed a separate issue about |
@spevans this change looks good to me and is an important fix for Swift 5. But, I'm not familiar with corelibs-foundation, what do you think? |
I think this needs an extra test on a
|
I believe that this PR will be replaced by the forthcoming PR for swift-corelibs-foundation paired with apple/swift#22108. |
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.
This looks fine but if it is to be superseded by a new PR it would be good to keep the test case.
That PR gives new API that you can use instead of having to advance the index yourself. Basically, it will let you simplify your one line of code, but it could be held up for a while awaiting core-team feedback and maybe even some SE work. This change is good and important no matter what happens with that PR, are you ok to merge it @spevans? |
Yup, thanks for the explanation, lets get this fix in. |
@swift-ci test and merge |
Thanks! |
Fixes SR-9454