Browse files

Convert strings using toUtf8() instead of toLocal8Bit() before using …

…ELF Hashing, fixes duplicate matching breaking where the environment isn't 8bit and toLocal8Bit() will fail. There's a small chance this will break duplicate matching for a few users who are using an 8-bit character encoding which isn't UTF8 compatible but it will fix it for far more users who might be running mythfilldatabase from a cronjob with no proper locale or similar. Refs #10449
  • Loading branch information...
1 parent 83759ac commit 4f9cbebdc36734380de37aaafa200c58b1c36feb @stuartm stuartm committed Mar 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/programs/mythfilldatabase/xmltvparser.cpp
2 mythtv/programs/mythfilldatabase/xmltvparser.cpp
@@ -533,7 +533,7 @@ ProgInfo *XMLTVParser::parseProgram(
- QString seriesid = QString::number(ELFHash(pginfo->title.toLocal8Bit()
+ QString seriesid = QString::number(ELFHash(pginfo->title.toUtf8()
pginfo->seriesId = seriesid;

0 comments on commit 4f9cbeb

Please sign in to comment.