[svn:parrot] r45555 - branches/immutable_strings_part1/src/string/charset

bacek at svn.parrot.org bacek at svn.parrot.org
Sun Apr 11 01:15:59 UTC 2010


Author: bacek
Date: Sun Apr 11 01:15:58 2010
New Revision: 45555
URL: https://trac.parrot.org/parrot/changeset/45555

Log:
Set new charset after converting.

Modified:
   branches/immutable_strings_part1/src/string/charset/ascii.c

Modified: branches/immutable_strings_part1/src/string/charset/ascii.c
==============================================================================
--- branches/immutable_strings_part1/src/string/charset/ascii.c	Sun Apr 11 00:05:37 2010	(r45554)
+++ branches/immutable_strings_part1/src/string/charset/ascii.c	Sun Apr 11 01:15:58 2010	(r45555)
@@ -943,6 +943,8 @@
         const UINTVAL c = ENCODING_GET_BYTE(interp, src, offs);
         ENCODING_SET_BYTE(interp, dest, offs, c);
     }
+
+    dest->charset = Parrot_binary_charset_ptr;
     return dest;
 }
 
@@ -971,6 +973,8 @@
         const UINTVAL c = ENCODING_GET_BYTE(interp, src, offs);
         ENCODING_SET_BYTE(interp, dest, offs, c);
     }
+
+    dest->charset = Parrot_iso_8859_1_charset_ptr;
     return dest;
 }
 


More information about the parrot-commits mailing list