From f9385f6300f0a46bc2e9421e1147eb5fa9125614 Mon Sep 17 00:00:00 2001 From: Andrew Compton Date: Mon, 25 Jul 2022 00:03:07 -0500 Subject: [PATCH] os: make get_raw_line() should not break lines on \r on windows (fix #5900) (#15205) --- vlib/os/os.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/os.c.v b/vlib/os/os.c.v index 1a106cc934..af73a15c1c 100644 --- a/vlib/os/os.c.v +++ b/vlib/os/os.c.v @@ -510,7 +510,7 @@ pub fn get_raw_line() string { if !res || bytes_read == 0 { break } - if *pos == `\n` || *pos == `\r` { + if *pos == `\n` { offset++ break }