Bug 72892 - Ark parses filenames wrongly with rar archives
Summary: Ark parses filenames wrongly with rar archives
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Helio Castro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-18 17:38 UTC by Ricardo Ferreira
Modified: 2004-02-10 18:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Ferreira 2004-01-18 17:38:02 UTC
Version:           v2.1.9 (using KDE 3.1.94 (CVS >= 20031206), Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
OS:          Linux (i686) release 2.4.22-openmosix-r2

When opening rar archives that have spaces in the (contained) file names, ark parses them wrongly and therefore shows wrong filenames.
Comment 1 Henrique Pinto 2004-01-19 19:32:26 UTC
Thank you for your report!

The bug is confirmed and will be fixed for KDE 3.2.1 (unfortunately, it is too late for including the fix in 3.2.0).
Comment 2 Henrique Pinto 2004-02-10 18:55:44 UTC
CVS commit by pinto: 

Fix for bug #72892:
	Don't strip whitespace from filenames in RAR archives.

CCMAIL: 72892-done@bugs.kde.org


  M +2 -1      rar.cpp   1.22


--- kdeutils/ark/rar.cpp  #1.21:1.22
@@ -73,5 +73,6 @@ bool RarArch::processLine(const QCString
   if ( m_isFirstLine )
   {
-    m_fileName = line.stripWhiteSpace();
+    m_fileName = line;
+    m_fileName.remove( 0, 1 );
     m_isFirstLine = false;
     return true;