Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

In Foundation.framework, initializing a String with .nonLossyASCII behaves the same way as .ascii, so this replicates the behavior for non-FOUNDATION_FRAMEWORK builds.

Resolves #929

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit cfcf10a into swiftlang:main Sep 20, 2024
3 checks passed
@jmschonfeld jmschonfeld deleted the string-init-nonlossyascii branch September 20, 2024 21:32
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
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.

Cannot instantiate String with Data with encoding nonLossyASCII

3 participants