CSCI128 / 128Autograder

Source Code for CSCI128 Autograder at Colorado School of Mines
0 stars 1 forks source link

[BUG] Incorrect input buffer size with subprocess #78

Open ezrichards opened 5 months ago

ezrichards commented 5 months ago

Description

Issue

Crazy Python subprocess piping thing.. see: https://stackoverflow.com/questions/8475290/how-do-i-write-to-a-python-subprocess-stdin https://stackoverflow.com/questions/27571305/subprocess-stdin-buffer-not-flushing-on-newline-with-bufsize-1

Steps to recreate

https://gist.github.com/ezrichards/9df42dea2bb21ec481690f577d579f1e (let me know if code doesn't work, I redacted some of it from the answer key)

Solution

sscanf and fgets should be usable.

gregbell26 commented 2 months ago

Adding to v4.0