lib/writeexcel/format.rb in writeexcel-0.6.9 vs lib/writeexcel/format.rb in writeexcel-0.6.10
- old
+ new
@@ -374,10 +374,10 @@
#
# Handle Unicode font names.
if (encoding == 1)
raise "Uneven number of bytes in Unicode font name" if cch % 2 != 0
cch /= 2 if encoding !=0
- rgch = rgch.unpack('n*').pack('v*')
+ rgch = utf16be_to_16le(rgch)
end
record = 0x31
length = 0x10 + rgch.bytesize
reserved = 0x00