Fix [RT#6266] -- sv_pos_u2b expects to be called with a valid character index
authorAlex Vandiver <alexmv@mit.edu>
Fri, 29 May 2009 20:21:22 +0000 (16:21 -0400)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 30 May 2009 14:15:50 +0000 (16:15 +0200)
commit9ef5ed94af316c852dd085d2cbe8306867ac870b
tree7ee2cfc3cf7a688209a515712f17df536190434c
parentcda5537682a2f5132de1e0387c105e67a72efce4
Fix [RT#6266] -- sv_pos_u2b expects to be called with a valid character index

sv_pos_u2b, when utf8 position caching is enabled, treats the uoffset
it is given as real, storing it away for lature use.  sprintf, here,
passes the byte length of the string, which causes an invalid offset
to be cached.
sv.c
t/op/sprintf2.t