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

[SR-2988][stdlib] Don't try to construct invalid UnicodeScalars #5603

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

JaSpa
Copy link
Contributor

@JaSpa JaSpa commented Nov 2, 2016

When inserting a closed range/creating a CharacterSet from a closed range we must not try to convert this range to a half open one by incrementing the upperBound UnicodeScalar because not all integer values are valid values for UnicodeScalar.

Resolves SR-2988.

When inserting a closed range/creating a CharacterSet from a closed
range we must not try to convert this range to a half open one by
incrementing the upperBound UnicodeScalar because not all integer values
are valid values for UnicodeScalar

Fixes SR-2988
@jrose-apple
Copy link
Contributor

Ooh, good catch. I'm not a standard library reviewer, but I'll kick off tests for you:

@swift-ci Please smoke test

@JaSpa
Copy link
Contributor Author

JaSpa commented Nov 2, 2016

Thanks!

@dabrahams mind taking a look?

@dabrahams
Copy link
Contributor

SInce this is a Foundation overlay change, I'm deferring to @parkera

@parkera parkera self-assigned this Nov 3, 2016
@parkera
Copy link
Contributor

parkera commented Nov 3, 2016

Looks good to me. Thanks @JaSpa.

@parkera
Copy link
Contributor

parkera commented Nov 3, 2016

@swift-ci please test and merge

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.

None yet

5 participants