Skip to content

os: fix get_raw_line() under windows - #23846

Merged
spytheman merged 9 commits into
vlang:masterfrom
kbkpbot:fix-os-get-raw-2
Mar 3, 2025
Merged

spytheman merged 9 commits into
vlang:masterfrom
kbkpbot:fix-os-get-raw-2

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Mar 2, 2025 •

Copy link
Copy Markdown
Contributor

Fix issue #23843

  1. read 1 byte/char from file pipe/console every time, and check for \n and Ctrl+Z.
  2. add a example/get_raw_line.v as I don't know how to test it.

A discussion can be found at golang/go@610d522

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22251

Comment thread vlib/os/os.c.v
Comment thread vlib/os/os.c.v Outdated

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman
spytheman merged commit f4b51d0 into vlang:master Mar 3, 2025
@kbkpbot
kbkpbot deleted the fix-os-get-raw-2 branch March 3, 2025 10:58
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.

2 participants