Bug 131920

Summary: Can't create preview folders with unicode carater name.
Product: [Applications] digikam Reporter: Yannick Roehlly <yannick.roehlly>
Component: Thumbs-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 0.9.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0

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 ***.