Closed parkera closed 1 month ago
Add a compatibility path for String(bytes:encoding:). Some clients expected this to correctly handle null-terminated strings. This patch falls back on NSString's behavior of producing a string with embedded nulls in some cases.
String(bytes:encoding:)
NSString
@swift-ci test
Add a compatibility path for
String(bytes:encoding:)
. Some clients expected this to correctly handle null-terminated strings. This patch falls back onNSString
's behavior of producing a string with embedded nulls in some cases.