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

Set stdin to binary mode on Windows. Fixes #2023 #2025

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

rotemdan
Copy link
Contributor

@rotemdan rotemdan commented Apr 5, 2024

Fixes #2023

My personal testing, so far, shows it resolves the problem of the stdin pipe being closed too early on Windows (see the linked issue for more information).

Please let me know if you see any possible issues with this approach.

@tamo
Copy link
Contributor

tamo commented Apr 5, 2024

I have had the same fix in my working tree for a few months without any problems so far.

@ggerganov ggerganov merged commit d3cfb6c into ggerganov:master Apr 9, 2024
jiahansu pushed a commit to WiseSync/whisper.cpp that referenced this pull request Apr 17, 2024
viktor-silakov pushed a commit to viktor-silakov/whisper_node_mic.cpp that referenced this pull request May 11, 2024
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
@rotemdan rotemdan deleted the fix-stdin-pipe-on-windows branch October 15, 2024 10:31
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.

Piping to stdin is failing on Windows
3 participants