Ticket #2234: mythosd_unicode.patch

File mythosd_unicode.patch, 1.3 KB (added by Sam, 14 years ago)

patch for mythtvosd

  • programs/mythtvosd/main.cpp

    diff -ru mythtv-0.19/programs/mythtvosd/main.cpp mythtv-0.19-unicode/programs/mythtvosd/main.cpp
    old new  
    9797
    9898    for (int argpos = 1; argpos < a.argc(); ++argpos)
    9999    {
    100         QString arg = a.argv()[argpos];
     100        QString arg = QString::fromLocal8Bit(a.argv()[argpos]);
    101101
    102102        if (arg.startsWith("-h") || arg.startsWith("--help"))
    103103        {
     
    141141
    142142    for (int argpos = 1; argpos < a.argc(); ++argpos)
    143143    {
    144         QString arg = a.argv()[argpos];
     144        QString arg = QString::fromLocal8Bit(a.argv()[argpos]);
    145145
    146146        if (arg.startsWith("--help") || arg.startsWith("--template"))
    147147            continue;
     
    175175        if (verbose)
    176176        {
    177177
    178             cerr << "name: " << name << " -- value: " << value << endl;
     178            cerr << "name: " << name.local8Bit() << " -- value: " << value.local8Bit() << endl;
    179179        }
    180180
    181181        name.append("%");
     
    185185    }
    186186
    187187    if (verbose)
    188         cout << "output:\n" << message << endl;
     188        cout << "output:\n" << message.local8Bit() << endl;
    189189
    190190    QSocketDevice sock(QSocketDevice::Datagram);
    191191