Bug 131920 - Can't create preview folders with unicode carater name.
Summary: Can't create preview folders with unicode carater name.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (show other bugs)
Version: 0.9.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-05 18:02 UTC by Yannick Roehlly
Modified: 2017-07-15 14:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yannick Roehlly 2006-08-05 18:02:39 UTC
Version:           0.9.0-beta1 (using KDE 3.5.4, Debian Package 4:3.5.4-3 (testing/unstable))
Compiler:          Target: powerpc-linux-gnu
OS:                Linux (ppc) release 2.6.18-rc3

Hi,

My locale is fr_FR.UTF-8. If I have a folder name with unicode characters, digikam can't create the thumbnails for PNG and GIF images (it shows a broken image icon). Although, for JPEG image it works.

This happens on PowerPC as well on i386.

Sincerely,

Yannick
Comment 1 Yannick Roehlly 2006-08-05 18:21:06 UTC
It does not work for PNM too.

PS: The real title of the bug is "Can't create preview folders with unicode characters in the name."
Comment 2 Johann-Nikolaus Andreae 2006-08-09 10:17:28 UTC
I can confirm this problem with locale de_DE.UTF-8.
Tested with a PNG kde-icon.
Comment 3 sero4linux 2006-08-09 12:31:53 UTC
Could you guys please check my unicode related bug "Camera UI: renaming dialogue can't handle UTF-8 filenames" (http://bugs.kde.org/show_bug.cgi?id=131558) and provide some feedback there? Thanks in advance! Sero
Comment 4 Marcel Wiesweg 2006-08-10 23:12:40 UTC
SVN commit 571843 by mwiesweg:

Only use QFile::encodeName immediately for system calls.
DImg takes a QString, give it a QString.
Please test if this solves the UTF8 problems.

CCBUGS: 131920


 M  +1 -1      digikamthumbnail.cpp  


--- trunk/extragear/graphics/digikam/kioslave/digikamthumbnail.cpp #571842:571843
@@ -622,7 +622,7 @@
 
 bool kio_digikamthumbnailProtocol::loadDImg(QImage& image, const QString& path)
 {
-    Digikam::DImg dimg_im(QFile::encodeName(path));
+    Digikam::DImg dimg_im(path);
 
     if (dimg_im.isNull()) 
     {
Comment 5 Yannick Roehlly 2006-08-11 16:30:16 UTC
Le jeudi 10 août 2006 23:12, Marcel Wiesweg a écrit :
> Only use QFile::encodeName immediately for system calls.
> DImg takes a QString, give it a QString.
> Please test if this solves the UTF8 problems.

 
Hi Marceil,

That solve the problem here. Thanks.

Yannick
Comment 6 Marcel Wiesweg 2006-08-11 22:34:38 UTC
*** Bug has been marked as fixed ***.