Ticket #2818: utf8_instead_of_ascii_in_execl_call.2.patch

File utf8_instead_of_ascii_in_execl_call.2.patch, 484 bytes (added by andrei@…, 13 years ago)
  • 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", QString(command.utf8()).ascii(), NULL);
    233233        if (errno)
    234234        {
    235235            VERBOSE(VB_IMPORTANT,