On Fri, 14 Oct 2016 11:06:54 -0700, c...@cpan.org wrote: > Cf > > say ("\c[REGIONAL INDICATOR SYMBOL LETTER G]" x 2).chars #=> 2 > > vs > > say ([~] "\c[REGIONAL INDICATOR SYMBOL LETTER G]" xx 2).chars #=> 1 >
What is going on here is not a bug in string repetition, but a bug in converting from List to a Str object. say ("\c[REGIONAL INDICATOR SYMBOL LETTER G]" xx 2).elems #> 2 say ("\c[REGIONAL INDICATOR SYMBOL LETTER G]" xx 2)[0].ords #> 127468 say ("\c[REGIONAL INDICATOR SYMBOL LETTER G]" xx 2)[0].chars #> 1 say ("\c[REGIONAL INDICATOR SYMBOL LETTER G]" xx 2).Str.ords #> (127468 32 127468) It is adding in a space between the characters when turning it from a List into a Str. Will hopefully get more time to look into this bug later.