From 07cc72ad5d40882d3330677a8cd3fe61c5611b47 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 13 Aug 2019 05:48:08 +0200 Subject: utf16_to_utf8: align with libuv - take a size parameter - return libuv error code - handle error in caller only (avoid redundant messages) https://github.com/libuv/libuv/commit/53995a3825d23eacd01e2bcfa35642c4a188d32b https://github.com/libuv/libuv/commit/4c945f49365ab4d6e1b07bf0ef2893455dc04622 --- src/nvim/os/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/os/fs.c') diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 615ab143b2..ad14fc2d5e 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -1208,7 +1208,7 @@ char *os_resolve_shortcut(const char *fname) ZeroMemory(wsz, MAX_PATH * sizeof(wchar_t)); hr = pslw->lpVtbl->GetPath(pslw, wsz, MAX_PATH, &ffdw, 0); if (hr == S_OK && wsz[0] != NUL) { - const int conversion_result = utf16_to_utf8(wsz, &rfname); + const int conversion_result = utf16_to_utf8(wsz, -1, &rfname); if (conversion_result != 0) { EMSG2("utf16_to_utf8 failed: %d", conversion_result); } -- cgit