Bug 137614

Summary: Ark cannot extract non-English named files from tar archive.
Product: [Applications] ark Reporter: Youngjoon Kim <kimkingo>
Component: generalAssignee: Harald Hvaal <metellius>
Status: RESOLVED DUPLICATE    
Severity: normal CC: christopher.lang, rakuco
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: patch on tar.cpp

Description Youngjoon Kim 2006-11-20 12:12:06 UTC
Version:           2.6.4 (using KDE KDE 3.5.5)
Installed from:    Fedora RPMs
OS:                Linux

When I open tar archive using Ark, select some non-English files, and try to extract, then Ark complains that there are not matched files, and the job fails.

With browsing some codes of Ark, I found such code in arkwidget.cpp file,

ArkWidget::action_extract()
{
   ....
   m_extractList->append(QFile::encodeName(*it));
   ....
}

but I cannot find decoding routine from codes which extract archvies. I think this is the reason why I can't extract non-English files.

So I modified tar.cpp file little bit to decode file names correctly. I modified only tar.cpp, but I think that decoding routing should be applied all file formats supported by Ark.
Comment 1 Youngjoon Kim 2006-11-20 12:16:38 UTC
Created attachment 18623 [details]
patch on tar.cpp 

I modified tar.cpp little bit to decode file names, and I cannot assure this is
good solution, but I found this works for non-English named files. 

Hope that Ark developers would provide better patches!
Comment 2 Bram Schoenmakers 2007-05-31 23:46:25 UTC
*** Bug 146221 has been marked as a duplicate of this bug. ***
Comment 3 Bram Schoenmakers 2007-05-31 23:50:18 UTC
Note: bug 131113 offers a patch as well.

*** This bug has been marked as a duplicate of 131113 ***