Skip to content

Commit d8f94a4

Browse files
authored
UUID.uuidString should return an upper String like on Darwin
Report for NSUUID: https://bugs.swift.org/browse/SR-865
1 parent 6b2c8cf commit d8f94a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/UUID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConv
6666
valPtr.withMemoryRebound(to: UInt8.self, capacity: MemoryLayout<uuid_t>.size) { val in
6767
withUnsafeMutablePointer(to: &bytes) { strPtr in
6868
strPtr.withMemoryRebound(to: CChar.self, capacity: MemoryLayout<uuid_string_t>.size) { str in
69-
_cf_uuid_unparse(val, str)
69+
_cf_uuid_unparse_upper(val, str)
7070
return String(cString: str, encoding: .utf8)!
7171
}
7272
}

0 commit comments

Comments
 (0)