diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-19 11:10:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 11:10:58 +0100 |
commit | b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b (patch) | |
tree | 9110a9dfe22936d1dc86c69af4951f02e79e3518 /src/nvim/mbyte.c | |
parent | 5db30dcc19d10837fee11e2d7f644a5cc76fd79f (diff) | |
parent | 7637df4b59091103996b07760cece4be8c557c35 (diff) | |
download | rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.tar.gz rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.tar.bz2 rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.zip |
Merge #5937 from justinmk/win32-test
Windows: test: enable job_spec.lua
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index ec4969d4f6..c855d68605 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1484,6 +1484,9 @@ int utf8_to_utf16(const char *str, WCHAR **strw) (WCHAR *)pos, wchar_len); assert(r == wchar_len); + if (r != wchar_len) { + EMSG2("MultiByteToWideChar failed: %d", r); + } *strw = (WCHAR *)pos; return 0; @@ -1519,6 +1522,9 @@ int utf16_to_utf8(const WCHAR *strw, char **str) NULL, NULL); assert(r == utf8_len); + if (r != utf8_len) { + EMSG2("WideCharToMultiByte failed: %d", r); + } *str = pos; return 0; |