LINUX.ORG.RU

История изменений

Исправление FishHook, (текущая версия) :

╰─$ cat test.py
out = b'Mounting \x1b[0;1;39mdev-mqueue.mount\x1b\xe2\x80\xa6POSIX Message Queue File System...\r\r\n['
print ("decode start")
print (out.decode(errors='ignore'))
print ("decode end")

╰─$ python test.py
decode start
Mounting dev-mqueue.mount��POSIX Message Queue File System...
[
decode end
╰─$

Исходная версия FishHook, :

╰─$ cat test.py
out = b'Mounting \x1b[0;1;39mdev-mqueue.mount\x1b\xe2\x80\xa6POSIX Message Queue File System...\r\r\n['
print ("decode start")
print (out.decode(errors='ignore'))
print ("decode end")
(storyteller) ~/code/scripts
╰─$ python test.py
decode start
Mounting dev-mqueue.mount��POSIX Message Queue File System...
[
decode end
╰─$