Skip to content

read_stdin should strip either "\r\n" or "\n" as line ending on Windows

Daniel Lenski requested to merge (removed):windows_read_stdin_line_ending into master

One user reports that Windows 10 1909 is sending \n alone as a line ending. #113 (comment 313304956)

This MR makes read_stdin handle either \r\n or just \n on Windows. It's intended to make echo password | openconnect less finicky on Windows.

Signed-off-by: Daniel Lenski dlenski@gmail.com

Merge request reports