Skip to content

Commit 96551f6

Browse files
committed
Fix the utf-8 decode error
1 parent a7ad66f commit 96551f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/os/posix/syscall/unistd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def ql_syscall_write(ql: Qiling, fd: int, buf: int, count: int):
266266
except:
267267
regreturn = -1
268268
else:
269-
ql.log.debug(f'write() CONTENT: {data.decode()!r}')
269+
ql.log.debug(f'write() CONTENT: {bytes(data)}')
270270

271271
if hasattr(ql.os.fd[fd], 'write'):
272272
ql.os.fd[fd].write(data)

0 commit comments

Comments
 (0)