Commit 2f82d775 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk
Browse files

debugger: fix for non-7bit chars on Windows

    Task-number: QTCREATORBUG-2136
    (ported from commit 02c331e0)
parent 9b6ac72e
......@@ -928,7 +928,20 @@ class FrameCommand(gdb.Command):
print timeit.repeat('bb("%s")' % args,
'from __main__ import bb', number=100)
else:
print bb(args)
output = bb(args)
try:
print(output)
except:
out = ""
for c in output:
cc = ord(c)
if cc > 127:
out += "\\\\%d" % cc
elif cc < 0:
out += "\\\\%d" % (cc + 256)
else:
out += c
print(out)
FrameCommand()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment