Ticket #8168: progfind.diff

File progfind.diff, 1.1 KB (added by ido roseman <ido_roseman@…>, 14 years ago)

patch to fix hebrew on progfind

  • programs/mythfrontend/progfind.cpp

     
    855855
    856856// Hebrew alphabet list and more
    857857const char* HeProgFinder::searchChars[] = {
    858     "א", "ב", "ג", "ד", "ה", "ו", "ז", "ח", "ט", "י", "כ", "ל", "מ",
    859     "× ", "ס", "×¢", "×€", "׊", "ק", "ך", "ש", "ת", "E", "#", 0,
    860 };
     858    "\u05d0", "\u05d1", "\u05d2", "\u05d3", "\u05d4", "\u05d5", "\u05d6", "\u05d7", "\u05d8",
     859    "\u05d9", "\u05db", "\u05dc", "\u05de", "\u05e0", "\u05e1", "\u05e2", "\u05e4", "\u05e6",
     860    "\u05e7", "\u05e8", "\u05e9", "\u05ea", "E", "#", 0 };
    861861
    862862HeProgFinder::HeProgFinder(MythScreenStack *parentStack, bool gg,
    863863                           TV *player, bool embedVideo)
     
    872872{
    873873    for (int charNum = 0; charNum < numberOfSearchChars; ++charNum)
    874874    {
    875         new MythUIButtonListItem(m_alphabetList, QString(searchChars[charNum]));
     875        new MythUIButtonListItem(m_alphabetList, QString::fromUtf8(searchChars[charNum]));
    876876    }
    877877}
    878878