Bug 97740

Summary: Konqueror does not show previews for video files with umlauts in file name
Product: [Applications] konqueror Reporter: Dennis Reif <kde>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: tomyun
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Dennis Reif 2005-01-23 21:19:07 UTC
Version:            (using KDE KDE 3.3.91)
Installed from:    SuSE RPMs
OS:                Linux

Using konqueror's icon view mode previews for video files with umlauts in their file names are not shown. It seems that other file types are not affected.
Comment 1 Martin Koller 2005-02-05 15:13:19 UTC
Checked with a file named "1öäü.mpg" - works.
Used current 3.4 CVS.

Can you give more details how to reproduce ?
Comment 2 Dennis Reif 2005-02-06 15:22:44 UTC
I am using the latest SuSE rpms of 3.4.

The problem seems to be related to utf-8 encoding which is the SuSE default. I recently checked files with latin1 encoded file names. Previews are displayed for those files.
Comment 3 Maksim Orlovich 2005-02-06 15:47:14 UTC
CVS commit by orlovich: 

More sensible encoding
BUG:97740


  M +3 -2      videocreator.cpp   1.10


--- kdemultimedia/xine_artsplugin/tools/thumbnail/videocreator.cpp  #1.9:1.10
@@ -29,4 +29,5 @@
 #include <qpixmap.h>
 #include <qdialog.h>
+#include <qfile.h>
 #include <qimage.h>
 #include <qpainter.h>
@@ -309,5 +310,5 @@ bool VideoCreator::create(const QString 
     bool success = false;
 
-    if (xine_open( stream, path.ascii() ))
+    if (xine_open( stream, QFile::encodeName ( path ).data() ))
     {
         xine_video_frame_t frame;


Comment 4 Maksim Orlovich 2005-02-21 17:56:07 UTC
*** Bug 86785 has been marked as a duplicate of this bug. ***