Summary: | stream tags in utf8 encoding is shown incorrectly | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Phonon | Reporter: | Oleg <verdrehung> |
Component: | Xine backend | Assignee: | Harald Sitter <sitter> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | istvan.kapcsandi, martin.sandsmark, myriam |
Priority: | NOR | ||
Version: | 4.3.0 (KDE 4.2.0) | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Oleg
2010-02-21 10:06:47 UTC
Confirmed with current git, using the en_US.UTF-8 locales IMHO the problem is in the phonon xine backend, especially where we want to decide how we should handle the meta strings. We check each meta string that is utf8 encoded or not. I think this check is wrong - because this way the isUtf8 variable never can be true: false & true is always false. pisti@pisti-noti:~/kde/src/phonon-4.7.0really4.4.2/xine$ git diff -u diff --git a/xine/xinestream.cpp b/xine/xinestream.cpp index 4817073..f2ec75c 100644 --- a/xine/xinestream.cpp +++ b/xine/xinestream.cpp @@ -748,7 +748,7 @@ void XineStream::updateMetaData() }; bool isUtf8 = false; for (int i = 0; !isUtf8 && i < 8; ++i) { - isUtf8 &= checkIsUtf8(meta[i]); + isUtf8 |= checkIsUtf8(meta[i]); } QTextCodec *codec = QTextCodec::codecForMib(106); // utf-8 if (!isUtf8) { *** This bug has been marked as a duplicate of bug 212099 *** |