Skip to content
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

wasi-cap-std-sync: use std::io::Std{in,out,err} to impl {read,write}_vectored #6825

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

pchickey
Copy link
Contributor

@pchickey pchickey commented Aug 9, 2023

I believe this fixes #6824.

Unfortunately it does not appear that CI reproduces the behavior of an actual windows cmd.exe, so we'll need a windows user to test it manually to verify.

@abrown
Copy link
Collaborator

abrown commented Aug 9, 2023

I just had to remember this: to get all the tests to run, add prtest:full to the commit message.

Pat Hickey added 2 commits September 12, 2023 13:57
there's not yet a way to show this test is actually doing what we
intend, I'm using CI to see how this runs on all platforms

Reported in #6824

prtest:full
…rectly

instead of using AsFilelike to view these as a File.

This means we also have to use std's mutexes to access these descriptors,
which also seems like a good idea.

We believe will fix unicode output on windows issues:
#6824
@pchickey pchickey changed the title add new wasi-test printing unicode on stdout wasi-cap-std-sync: use std::io::Std{in,out,err} to impl {read,write}_vectored Sep 12, 2023
@pchickey pchickey marked this pull request as ready for review September 12, 2023 21:05
@pchickey pchickey requested a review from a team as a code owner September 12, 2023 21:05
@pchickey pchickey requested review from alexcrichton and removed request for a team September 12, 2023 21:05
@alexcrichton alexcrichton added this pull request to the merge queue Sep 12, 2023
Merged via the queue into main with commit ce4950e Sep 12, 2023
34 checks passed
@alexcrichton alexcrichton deleted the pch/wasi_unicode_stdout branch September 12, 2023 22:27
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Sep 13, 2023
…vectored (bytecodealliance#6825)

* add new wasi-test printing unicode on stdout

there's not yet a way to show this test is actually doing what we
intend, I'm using CI to see how this runs on all platforms

Reported in bytecodealliance#6824

prtest:full

* cap-std-sync: use std::io::Std{in,out,err}'s {read,write}_vectored directly

instead of using AsFilelike to view these as a File.

This means we also have to use std's mutexes to access these descriptors,
which also seems like a good idea.

We believe will fix unicode output on windows issues:
bytecodealliance#6824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stdout unicode output is not shown correctly
3 participants