Skip to content

use surrogateescape in system.gai_strerror#56

Merged
Vizonex merged 1 commit intomainfrom
surrogateescape-for-errors
Jul 17, 2025
Merged

use surrogateescape in system.gai_strerror#56
Vizonex merged 1 commit intomainfrom
surrogateescape-for-errors

Conversation

@Vizonex
Copy link
Owner

@Vizonex Vizonex commented Jul 17, 2025

Sometimes some gai_strerror will throw unwanted bullshit characters into the mix, incase this happens again, I have tested a little snippet of code and these nonsense characters appear to be bypass-able.

e = b'\xdd'
print(e.decode('utf-8',"surrogateescape"))

@IvanKirpichnikov Here's that pull request you've been looking for.

@Vizonex Vizonex merged commit 963c387 into main Jul 17, 2025
20 checks passed
@Vizonex Vizonex deleted the surrogateescape-for-errors branch July 17, 2025 23:43
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.

error parse bytes

1 participant