Skip to content

Fix an encoding issue in sendcontrol#332

Merged
andfoy merged 1 commit intoandfoy:mainfrom
ddddhm1234:main
Jul 15, 2023
Merged

Fix an encoding issue in sendcontrol#332
andfoy merged 1 commit intoandfoy:mainfrom
ddddhm1234:main

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 andfoy added this to the V2.0.11 milestone Jul 15, 2023
@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