system: _reflink_darwin: use fsencode for path (#5085)

Fixes #5083
This commit is contained in:
Ruslan Kuprieiev
2020-12-13 02:29:26 +02:00
committed by GitHub
parent d3acbfe2b1
commit 1dafbd8361
+2 -2
View File
@@ -71,8 +71,8 @@ class System:
clonefile.restype = ctypes.c_int
return clonefile(
ctypes.c_char_p(src.encode("utf-8")),
ctypes.c_char_p(dst.encode("utf-8")),
ctypes.c_char_p(os.fsencode(src)),
ctypes.c_char_p(os.fsencode(dst)),
ctypes.c_int(0),
)