rexpect icon indicating copy to clipboard operation
rexpect copied to clipboard

Binary support?

Open cheako opened this issue 4 years ago • 4 comments

Some binary data cannot be represented in an &str, so functions that take &[u8] are necessary. Unless I misunderstand or am using the wrong tool.

Use case is programing Marvell ARMADA 3700 over serial port.

cheako avatar Jan 17 '21 21:01 cheako

Looking at this I can't believe this does not panic when reading half of an unicode char?

cheako avatar Jan 17 '21 22:01 cheako

https://github.com/cheako/rexpect/tree/binary

cheako avatar Jan 20 '21 02:01 cheako

thanks for reporting this. It looks like you are trying to come up with a pull request. Is this correct? I have very limited time for this project. If you issue a PR and it passes the tests and examples I will merge it

philippkeller avatar Jan 20 '21 10:01 philippkeller

Much more testing is needed, but thanks for doing what you can to maintain this.

cheako avatar Jan 20 '21 19:01 cheako