aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-13 05:48:08 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-15 00:28:41 +0200
commit07cc72ad5d40882d3330677a8cd3fe61c5611b47 (patch)
tree76b7afaceffa946fcf72450a80b89896318935ac /src/nvim/os/fs.c
parent8727f7a6a4ef10ce7536fbc003ef13b768f1aa91 (diff)
downloadrneovim-07cc72ad5d40882d3330677a8cd3fe61c5611b47.tar.gz
rneovim-07cc72ad5d40882d3330677a8cd3fe61c5611b47.tar.bz2
rneovim-07cc72ad5d40882d3330677a8cd3fe61c5611b47.zip
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
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r--src/nvim/os/fs.c2
1 files changed, 1 insertions, 1 deletions
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);
}