Skip to content

Conversation

@mhermier
Copy link
Contributor

Add Stdin.readBytes().

Stdin.readByte() cannot be trusted with bytes > 127 (aka any non ascii-7).
Fixing it would require quite some modifications in wren (fixing is quite a can of worm because String[NumSeq] is ultimately broken, and would require a primitive to handle ByteArray[NumSeq] anyway).

While waiting for this to be resolved, Stdin.readBytes() can be added for cheap to make the access to the console bytes usable in the meantime.

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.

1 participant