[SR-10329] String.init(decodingCString:as:) returns non-empty string for empty array with UTF8 encoding #52729
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Attachment: Download
Environment
Swift 5.0 shipped on Version 10.2 (10E125).
Additional Detail from JIRA
md5: fcf9948ec7b20dfa006a0d8178f4d6b3
Issue Description:
The following code returns an non-empty string. While it should return an empty string:
The text was updated successfully, but these errors were encountered: