Ticket #2818: utf8_instead_of_ascii_in_execl_call.patch

File utf8_instead_of_ascii_in_execl_call.patch, 467 bytes (added by andrei@…, 13 years ago)

myth_system() fix for non-ascii file paths and command line parameters

  • libs/libmyth/util.cpp

     
    229229            close(fd);
    230230
    231231        /* Run command */
    232         execl("/bin/sh", "sh", "-c", command.ascii(), NULL);
     232        execl("/bin/sh", "sh", "-c", command.utf8(), NULL);
    233233        if (errno)
    234234        {
    235235            VERBOSE(VB_IMPORTANT,