HexEdit/HexEditWidget.py

changeset 4664
a40706f44514
parent 4663
e2625053a0e2
child 4669
d37bfc9ca3b9
--- a/HexEdit/HexEditWidget.py	Sat Jan 16 15:16:24 2016 +0100
+++ b/HexEdit/HexEditWidget.py	Sat Jan 16 15:41:59 2016 +0100
@@ -1622,7 +1622,10 @@
                 if (i + j) < len(byteArray):
                     hexStr += " {0:02x}".format(byteArray[i + j])
                     by = byteArray[i + j]
-                    if by < 0x20 or by > 0x7e:
+                    if is_Py2 and (by < 0x20 or by > 0x7e):
+                        ch = "."
+                    elif not is_Py2 and \
+                            (by < 0x20 or (by > 0x7e and by < 0xa0)):
                         ch = "."
                     else:
                         ch = chr(by)

eric ide

mercurial