-
Notifications
You must be signed in to change notification settings - Fork 188
Discrepancy: String.data(using: .japaneseEUC)
returns nil
on non-Darwin.
#1016
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
Comments
String.data(using: . japaneseEUC)
returns nil
on non-Darwin.String.data(using: .japaneseEUC)
returns nil
on non-Darwin.
5 tasks
Resolved by #1217 as long as Foundation is imported. |
Actually - @YOCKOW can you verify that? |
While I confirmed ISO-2022-JP was OK, EUC-JP seems still broken. Edit: I'm sorry. This issue is not regression. It has been existing from a long time ago. I'll try to tackle on this separately... |
YOCKOW
added a commit
to YOCKOW/swift-foundation
that referenced
this issue
May 16, 2025
Background: EUC-JP is not supported by OSS CoreFoundation, while it is supported by macOS Foundation Framework. See swiftlang#1016 This commit resolves the issue by calling ICU API if necessary.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following code:
Results are:
This is not regression but discrepancy which should be also fixed.
The text was updated successfully, but these errors were encountered: