[perl #103492] Make %n printf format work with Unicode
authorFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jan 2012 07:49:01 +0000 (23:49 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jan 2012 07:49:01 +0000 (23:49 -0800)
commit89139cf8b9171f35c9a292b738281de09c5432ab
tree4ca53e58a6a74dc2281966ad5cec350868e3b507
parent69974ce61d7459da5eda22eb31d730128757db37
[perl #103492] Make %n printf format work with Unicode

It was using the internal byte count instead of the number of charac-
ters.  The iatter is documented.  The former is useless, even for C
code calling this, as later arguments could cause the current buffer
to be upgraded to utf8, throwing off any offsets returned.
sv.c
t/op/sprintf.t