# File tools/normtest.rb, line 19 def to_hex(str) ret = "" str = str.unpack('U*') str.each do |c| ret += sprintf("%04X ", c) end ret end