diff options
| author | Vicent Marti <tanoku@gmail.com> | 2013-08-13 09:15:39 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2013-08-13 09:15:39 +0200 |
| commit | abf3732728d0af42ed7217c7148509c8aa30a7e5 (patch) | |
| tree | 068a4aedbc27989e78d6acf14fe638dfcb9bb1cd /src/fileops.c | |
| parent | 0e26fca1daa11a3108960dee3cb555b4c482ad81 (diff) | |
| download | libgit2-abf3732728d0af42ed7217c7148509c8aa30a7e5.tar.gz | |
windows: Path conversion with better semantics
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileops.c b/src/fileops.c index d62158db7..cf77ad164 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -58,9 +58,9 @@ int git_futils_creat_locked(const char *path, const mode_t mode) int fd; #ifdef GIT_WIN32 - git_win32_path_utf16 buf; + git_win32_path buf; - git__win32_path_utf8_to_16(buf, path); + git__win32_path_from_c(buf, path); fd = _wopen(buf, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL | O_BINARY | O_CLOEXEC, mode); #else |
