[svn:parrot] r39863 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Thu Jul 2 00:44:10 UTC 2009


Author: chromatic
Date: Thu Jul  2 00:44:10 2009
New Revision: 39863
URL: https://trac.parrot.org/parrot/changeset/39863

Log:
[src] Changed Parrot's command-line argument processing to treat command-line
arguments as Unicode by default, not ASCII.  This works with and without ICU.
See TT #800.  (This needs a test case.)

Modified:
   trunk/src/embed.c

Modified: trunk/src/embed.c
==============================================================================
--- trunk/src/embed.c	Wed Jul  1 23:43:26 2009	(r39862)
+++ trunk/src/embed.c	Thu Jul  2 00:44:10 2009	(r39863)
@@ -644,7 +644,7 @@
     for (i = 0; i < argc; i++) {
         /* Run through argv, adding everything to @ARGS. */
         STRING * const arg =
-            string_make(interp, argv[i], strlen(argv[i]), NULL,
+            string_make(interp, argv[i], strlen(argv[i]), "unicode",
                 PObj_external_FLAG);
 
         if (Interp_debug_TEST(interp, PARROT_START_DEBUG_FLAG))


More information about the parrot-commits mailing list