-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several strings in win\pty.cc are converting wide strings to narrow strings #104
Comments
@Tyriar Imho the conversion is not needed at all since Windows uses internally a type of UTF-16 for Untested: wchar_t *some_wstring;
...
Nan::MaybeLocal<v8::String> error = Nan::New<v8::String>(
(uint16_t *) some_wstring,
wcslen(some_wstring));
Nan::ThrowError(error.ToLocalChecked()); |
@jerch I did something like that but I wasn't sure what the best way to test it was. |
@Tyriar The official docs state the following:
V8 developer doc mentions UTF-16 for method And for testing - hmm, to see if all Btw the new |
From @rprichard in #103 (comment)
The text was updated successfully, but these errors were encountered: