My change here https://github.com/libuv/libuv/pull/889 has caused some issues to pop up in node 7.1.0
@bnoordhuis is https://github.com/nodejs/node/issues/9542#issuecomment-259813312 the proper fix for this?
Thats a quick fix. sets it to UV_UNSUPPORTED so my code is never called.
What @iWuzHere said. I think we should revert 58ccfd4 for now, do a release, then revisit.
I'm no expert in this codebase, but I took a look at the original commit and also debugged the react-native scenario. What I see is that, in the problematic case, uv_tty_write_bufs is getting called with a buffer whose length is 0. Before #889, this was ok- however, after #889, MultiByteToWideChar is being called with cbMultibyte set to 0 in the problematic case, and it returns an error which cascades down. If I change the guard to the following, everything seems happy again:
if (uv__vterm_state == UV_SUPPORTED && buf.len > 0) {
Happy to submit a PR if anyone's interested but as mentioned before, I have very little experience with libuv and given the urgency of the change, someone else might be able to get a fix out quicker.
cc @joaocgreis @joshgav
On second thoughts, decided to learn how to contribute to libuv- opened #1139- please let me know if I made any mistakes
The discussion in https://github.com/nodejs/node/issues/9542 suggests there is still a regression so I'm reopening the issue. I've updated the revert in #1138 to include the changes from #1139.