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-8355] String(cString:encoding:) shouldn't be allowed for 2-bytes encodings (utf16+) #50883

Open
swift-ci opened this issue Jul 24, 2018 · 0 comments
Labels
new feature standard library Area: Standard library umbrella

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-8355
Radar None
Original Reporter Benjamin G (JIRA User)
Type New Feature
Additional Detail from JIRA
Votes 1
Component/s Standard Library
Labels New Feature
Assignee None
Priority Medium

md5: 2a5cbed46b28bbf365d1f5a715cc5ba5

Issue Description:

see https://forums.swift.org/t/string-cstring-encoding-with-non-1-byte-encodings-should-trigger-a-warning-somewhere/14721

basically, using 2-bytes encoding (such as utf-16) with this function shouldn't be allowed.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant