Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an encoding issue in sendcontrol #332

Merged
merged 1 commit into from
Jul 15, 2023
Merged

Fix an encoding issue in sendcontrol #332

merged 1 commit into from
Jul 15, 2023

Conversation

ddddhm1234
Copy link
Contributor

fix the bug in sendcontrol function.
let us take an example of sending ctrl+c through this function,

  • the oiriginal code
byte = str(bytes([0x03]))

the byte would be r"b\x03"

  • the modified code
byte = bytes([0x03]).decode("ascii")

the byte would be "\x03"

@andfoy
Copy link
Owner

andfoy commented Jul 15, 2023

Thanks for this contribution @ddddhm1234!

@andfoy andfoy merged commit 8058844 into andfoy:main Jul 15, 2023
@andfoy andfoy changed the title 1. fix the bug of sendcontrol Fix an encoding issue in sendcontrol Jul 15, 2023
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.

2 participants