mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
UTF-8
This commit is contained in:
parent
2a05e8512f
commit
786c12fade
@ -24,7 +24,7 @@ public struct OID {
|
||||
}
|
||||
|
||||
let pointer = UnsafeMutablePointer<git_oid>.alloc(1)
|
||||
let result = git_oid_fromstr(pointer, string.cStringUsingEncoding(NSASCIIStringEncoding)!)
|
||||
let result = git_oid_fromstr(pointer, string.cStringUsingEncoding(NSUTF8StringEncoding)!)
|
||||
|
||||
if result < GIT_OK.value {
|
||||
pointer.dealloc(1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user