> On 22 Jun 2016, at 20:02, Kenny Leung via swift-evolution > <[email protected]> wrote: > > I think it would be OK if the transparent bridging called cString(using:) > itself, and the whole thing would fail if the conversion fails.
But the cString(using:) method is from Foundation, and using UTF-8 should always succeed in any case. UTF-8 by default is probably correct for POSIX APIs, but maybe not for Windows APIs (if code pages are expected). -- Ben _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
