swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.36k stars 150 forks source link

Support initializing string with nonLossyASCII encoding #932

Closed jmschonfeld closed 8 hours ago

jmschonfeld commented 1 day ago

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 https://github.com/apple/swift-foundation/issues/929

jmschonfeld commented 1 day ago

@swift-ci please test