Summary: | playing a file with accents in name makes recent.xml grow without limit from then on | ||
---|---|---|---|
Product: | [Applications] kmplayer | Reporter: | Jonathan Marten <jjm> |
Component: | general | Assignee: | Koos Vriezen <koos.vriezen> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jonathan Marten
2012-02-29 13:47:58 UTC
Workaround: rm .kde/share/apps/kmplayer/recent.xml touch .kde/share/apps/kmplayer/recent.xml chmod 000 .kde/share/apps/kmplayer/recent.xml This does not affect the "Open Recent" operation, because that list is stored in [Recent Files] in .kde/share/config/kmplayerrc Looks like QTextStream didn't detect the UTF8 encoding. KMPlayer writes out these files in UTF8 and expects QTextStream to detect that. When your LANG env setting not is set to a UTF8 variant, it may perhaps fallback to ISO-8859-1. You didn't specify a version, so did you compile it yourself? If so, then please try adding inxml.setCodec("UTF-8"); in src/kmplayer_lists.cpp FileDocument::readFromFile after the line QTextStream inxml (&file); Yes, self compiled (SVN r1281865). LANG=C KDE_LANG=en_GB ...because there are some non-KDE applications that I need to use that still don't like Unicode locales :-( Adding the setCodec() as described appears to solve the problem. Many thanks for the quick fix! SVN commit 1282917 by vriezen: Set codec to utf8 when reading our own lists Apparently QTextStream doesn't detect it on non-utf8 locales M +1 -0 kmplayer_lists.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1282917 |