From: Gary Wright Date: 2007-12-12T05:00:51+09:00 Subject: Re: Array#pack and String#unpack documentation On Dec 11, 2007, at 9:10 AM, Yukihiro Matsumoto wrote: > In message "Re: Array#pack and String#unpack documentation" > on Tue, 11 Dec 2007 11:13:37 +0900, "Gary Wright" > writes: > > |The phrase 'ASCII string' is the part that confused me. It > |looks like the contents of the string is irrelavant--there > |is no requirement that the string only contain ASCII values. > |For A, the padded space will be an ASCII space though. For > |'a' and 'z', there doesn't seem to be any dependency on ASCII. > > OK, I will merge you patch to the trunk. Thank you. > You're welcome. 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. 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? Anyway, that is why I stayed away from trunk, even though the patch works just fine there. Gary Wright