Summary: | konqueror image gallery creator has problems with umlauts in comments file | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Tobias Jochmann <tjochmannschreibt> |
Component: | kimgalleryplugin | Assignee: | Lukáš Tinkl <lukas> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | lueck, rakuco, rdieter |
Priority: | NOR | ||
Version: | 4.3.1 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.6.5 | |
Sentry Crash Report: |
Description
Tobias Jochmann
2009-10-04 18:29:26 UTC
Actually, this doesn't have anything to do with Ark. What program were you running and what steps did you take to create that gallery? Sorry, accidently i assigned it to ark. I ran konqueror. Above i wrote the steps how to create the gallery. Important is only the comments option. Every other adjustment on how to create the gallery doesn´t matter. Thanks for the information. I'm finally reassigning it to the appropriate product and component. Hey Guys, any updates on this? This issue still exists in KDE 4.4.5 This one liner patch fixes this bug for me: diff --git a/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp b/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp index fa80eb3..2ce0a1b 100644 --- a/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp +++ b/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp @@ -238,7 +238,7 @@ void KImGalleryPlugin::createBody(QTextStream& stream, const QString& sourceDirN } if (m_useCommentFile) { - QString imgComment = (*m_commentMap)[imgName].toLocal8Bit(); + QString imgComment = (*m_commentMap)[imgName].toLatin1(); stream << "<div>" << Qt::escape(imgComment) << "</div>" << endl; } stream << "</td>" << endl; Hmm, it looks like the code was similar to that 9 years ago when r143851 changed it so that local8Bit() was used instead of latin1(). I think your patch can safely go in without .toLatin1(), just use (*m_commentMap)[imgName]. Please remove the toLocal8Bit() calls in loadCommentFile() too. Git commit f5a4f96df01ddcf32fdc0be01d557e85d66bfca3 by Burkhard Lück. Committed on 12/06/2011 at 22:01. Pushed by lueck into branch 'KDE/4.6'. use proper encoding to allow umlauts (äöü etc) in comments file, approved by rkcosta BUG:209426 M +2 -2 konq-plugins/kimgalleryplugin/imgalleryplugin.cpp http://commits.kde.org/kde-baseapps/f5a4f96df01ddcf32fdc0be01d557e85d66bfca3 SVN commit 1236355 by rkcosta: Start the 4.6.5 changelog mentioning bug 209426. CCBUG: 209426 M +8 -0 changelog_branch_4_6.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=1236355 |