Summary: | Zip files created using Ark via the Konqueror context menu have a capital ZIP extension | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | Shriramana Sharma <samjnaa> |
Component: | general | Assignee: | Harald Hvaal <metellius> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nicolasg, rakuco |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Shriramana Sharma
2006-02-24 14:26:21 UTC
I can't reproduce this. I tried a couple of files, all are compressed as .zip normally. Is it happening to all files? I have tried executables, makefiles, c source files, png files, directories... all same. SUSE Linux 10.0, KDE 3.51, Ark 2.61. On what kind of file system are you trying to write those files? It sounds as you would write on a VFAT (Windows) file system. (If the name fit into 8+3 name pattern, you could have this behaviour in that case.) Have a nice day! reiserfs 3.6 as installed by SUSE Linux 10.0 -- does not any other SUSE user or Linux user see this bug? Ok i get it too sometimes. I am investigating it I'm getting the same, kde 3.5.1 from suse supplementary, SuSE 9.2, filesystem is ext3. I see the same thing happening on Mandriva 2006 (community) with KDE 3.5.1 From SoS). Tested on a Reiser file system and indeed also on vfat (with mount option 'shortname=mixed'). Thanks to all! My idea that it could be VFAT-specific is not confirmed. SVN commit 516728 by charis: KMimeType returns .zip .ZIP .rar and .RAR. We should select zip and rar as the extensions instead of the capitals counterparts BUG: 122640 M +4 -0 arkplugin.cpp --- branches/KDE/3.5/kdeaddons/konq-plugins/arkplugin/arkplugin.cpp #516727:516728 @@ -401,6 +401,10 @@ target = filelist.first() + m_extensionList[ pos ]; else { + //KMimeType returns .zip .ZIP .rar and .RAR. Here we select zip and rar as the extensions + if ( ( m_extensionList[ pos ].contains ( ".ZIP" ) ) || ( m_extensionList[ pos ].contains( ".RAR" ) ) ) + pos-=1; + target = m_dir + i18n("Archive") + m_extensionList[ pos ]; int i=1; while ( KIO::NetAccess::exists(target, true, 0 ) ) SVN commit 516867 by charis: Better implementation. Don't be sure that KMimeType will always return the same results BUG: 122640 CCMAIL: thiago@kde.org M +7 -4 arkplugin.cpp --- branches/KDE/3.5/kdeaddons/konq-plugins/arkplugin/arkplugin.cpp #516866:516867 @@ -397,14 +397,17 @@ ++it; filelist.append( item->url().url() ); } + //if KMimeType returns .ZIP or .RAR. convert them to lowercase + if ( m_extensionList[ pos ].contains ( ".ZIP" ) ) + m_extensionList[ pos ] = ".zip"; + + if ( m_extensionList[ pos ].contains ( ".RAR" ) ) + m_extensionList[ pos ] = ".rar"; + if ( filelist.count() == 1) target = filelist.first() + m_extensionList[ pos ]; else { - //KMimeType returns .zip .ZIP .rar and .RAR. Here we select zip and rar as \ the extensions - if ( ( m_extensionList[ pos ].contains ( ".ZIP" ) ) || ( m_extensionList[ \ pos ].contains( ".RAR" ) ) ) - pos-=1; - target = m_dir + i18n("Archive") + m_extensionList[ pos ]; int i=1; while ( KIO::NetAccess::exists(target, true, 0 ) ) |