[svn:parrot] r46824 - branches/ucs4_encoding/src/string/encoding

darbelo at svn.parrot.org darbelo at svn.parrot.org
Thu May 20 19:55:23 UTC 2010


Author: darbelo
Date: Thu May 20 19:55:23 2010
New Revision: 46824
URL: https://trac.parrot.org/parrot/changeset/46824

Log:
Update string length after manually filling the buffer.

Modified:
   branches/ucs4_encoding/src/string/encoding/ucs4.c

Modified: branches/ucs4_encoding/src/string/encoding/ucs4.c
==============================================================================
--- branches/ucs4_encoding/src/string/encoding/ucs4.c	Thu May 20 19:52:13 2010	(r46823)
+++ branches/ucs4_encoding/src/string/encoding/ucs4.c	Thu May 20 19:55:23 2010	(r46824)
@@ -201,6 +201,8 @@
         for ( offs = 0; offs < len; offs++ ){
             buf[offs] = src->encoding->get_codepoint(interp, src, offs);
         };
+        res->strlen  = len;
+        res->bufused = len * sizeof (UChar32);
 
         return res;
     }


More information about the parrot-commits mailing list