Ticket #800: unicode_args.patch

File unicode_args.patch, 0.5 KB (added by chromatic, 5 years ago)

Encode command-line arguments as Unicode, not ASCII

  • src/embed.c

    === src/embed.c
    ==================================================================
     
    644644    for (i = 0; i < argc; i++) { 
    645645        /* Run through argv, adding everything to @ARGS. */ 
    646646        STRING * const arg = 
    647             string_make(interp, argv[i], strlen(argv[i]), NULL, 
     647            string_make(interp, argv[i], strlen(argv[i]), "unicode", 
    648648                PObj_external_FLAG); 
    649649 
    650650        if (Interp_debug_TEST(interp, PARROT_START_DEBUG_FLAG))