-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Please provide a way to set untranslated I/O mode on Windows #55393
Comments
Windows users only! Consider the following alternative instead of Native Messaging Host – the motivation of using this, could be a simpler set up and no registry involved. Cheers ! ♥ |
@projektorius96 I don't understand your issue; Do you have a minimal example that demonstrates the issue? |
Well, first of all REAMDE.md provides a quick insight how to do repro on local machine, well I guess you know better than me how to glue up things for sure. To follow up, I have couple of arbitrarily defined functions as per implementation :
Finally, I just wanted to say it is my very first try doing something relatively low, but in higher programming language, and I even fail at that. It simply can be something wrong with my codebase due to lack of knowledge. However, I wrote an alternative solution based on WebSocket to communicate between the Dart host and Service Worker, I'd say I even prefer the later one, yet I was interested into implementing former one too. Curiosity is a powerful weapon, but like I said I am failing with native messaging host at this stage. Cheers ! |
I'm going to close this issue. If you manage to reduce this enough to demonstrate a bug in dart:io, please reopen it! |
@brianquinlan so apparently I have to admit I was wrong, I mean well like I said "lack of knowledge", if you ever eyeballed on my codebase, you perhaps you had said that I need to |
If interested, you can follow up the related discussion on this issue. I am closing this myself, if you have anything to add, please re-open. Cheers ! |
So I am writing a Native messaging host for Chromium-based browser in Dart, I have a working draft of transcoding implementation and it works for
decodeMessage
(at least I can see that on my side withstdout
redirected to file), but it seems that it breaks ondart_io.stdout.write
call, and not because ofencodeMessage
implementation itself, but due to default (i.e._O_TEXT
) Windows's I/O translation mode, which in turn corrupts the encoded message with the respond from Chromium-based browser Extension systemError when communicating with the native messaging host.
I am writing this to to request a feature, which as far as I do understand does not currently (2024 Q1) exist on higher level end of Dart VM, i.e. to control the I/O mode for Windows via Dart VM . Please understand that FFI to C via Win API is my last resort.
P.S. I am willing to share the final codebase with Dart community once I get it done working
Thank you.
This tracker is for issues related to:
The text was updated successfully, but these errors were encountered: