You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String encoder error will break fuzzing progress.
Running this script will raise UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe in position 11: ordinal not in range(128)
To fix this issue I changed py2_str_encoder_func function in kitty/model/low_level/encoder.py as follows:
def py2_str_encoder_func(encoding):
if encoding not in _py2_str_encoder_funcs_cache:
_py2_str_encoder_funcs_cache[encoding] = lambda x: strToUtf8(x).encode(encoding)
return _py2_str_encoder_funcs_cache[encoding]
So x is encoded in utf8 first and then it's encoded with the requested encoding (the decoding is already performed by Python in the encode() function)
Honestly I'm not sure that's a valid solution, I've executed few/poorly tests and only with utf_16_le and utf_16_be encodings.
Python Version 2.7.16
String encoder error will break fuzzing progress.
Running this script will raise
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe in position 11: ordinal not in range(128)
This problem can be reproduced with the code show below .
The text was updated successfully, but these errors were encountered: