Skip to content

Conversation

parkera
Copy link
Contributor

@parkera parkera commented Mar 24, 2025

Fixes #5193 by adding a dynamic replacement for the FoundationEssentials extensions on String to use when handed an encoding that only CoreFoundation knows how to deal with.

@parkera parkera requested a review from jmschonfeld March 24, 2025 22:03
@parkera
Copy link
Contributor Author

parkera commented Mar 24, 2025

@swift-ci test

@parkera parkera merged commit af2ecd8 into swiftlang:main Mar 25, 2025
2 checks passed
YOCKOW added a commit to YOCKOW/swift-foundation that referenced this pull request Jun 17, 2025
YOCKOW added a commit to YOCKOW/swift-foundation that referenced this pull request Aug 18, 2025
itingliu pushed a commit to swiftlang/swift-foundation that referenced this pull request Sep 4, 2025
* [Proposal] Add "String Encoding Names" proposal.

This proposal allows `String.Encoding` to be converted to and from various names.

For example:

```swift
print(String.Encoding.utf8.ianaName!) // Prints "UTF-8"
print(String.Encoding(ianaName: "ISO_646.irv:1991") == .ascii) // Prints "true"
```

* Change the link to implementation.

* Remove description about #1015 since it is resolved.

Links:
- Issue: #1015
- Resolvers:
  * #1217
  * swiftlang/swift-corelibs-foundation#5194

* Add a description about already-available ICU string converter.
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.

Add swift-corelibs-foundation side of upcall for non-UTF encoding
2 participants