Hi,
In message "Re: Array#pack and String#unpack documentation"
on Wed, 12 Dec 2007 05:00:51 +0900, Gary Wright <gwtmp01 / mac.com> writes:
|I didn't generate the diff against trunk because I wasn't
|entirely sure how the M17N work interacted with String#unpack and
|Array#pack.
pack/unpack does not handle M17N at all.
|For example, should Array#pack always use an ASCII space for
|the 'A' format or should it be using the space defined for the
|current encoding? What if the current encoding is multibyte
|(e.g. UTF-16) and the space doesn't fit in the allotted width?
Again, pack/unpack does not handle encoding, so UTF-16 is treated as
sequence of bytes. Padding it with ASCII space would result in
garbage, but I consider it users' responsibility.
matz.