lib/textbringer/window.rb in textbringer-1.1.1 vs lib/textbringer/window.rb in textbringer-1.1.2
- old
+ new
@@ -685,9 +685,11 @@
if c.nil?
"<EOF>"
else
"U+%04X" % c.ord
end
+ rescue ArgumentError
+ "0x" + c.unpack("H*")[0]
end
def escape(s)
if !s.valid_encoding?
s = s.b