Bug 113216 - In Icon View, Konqueror is unable to cut/copy/paste file with UTF-8 characters name
Summary: In Icon View, Konqueror is unable to cut/copy/paste file with UTF-8 character...
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: file icon view (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 113246 113792 114219 114399 114487 114966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-24 15:03 UTC by Damien Gombault
Modified: 2005-10-29 10:59 UTC (History)
8 users (show)

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 Damien Gombault 2005-09-24 15:03:49 UTC
Version:           3.4.91 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

A example is better than a very long description.

I launch Konqueror 3.4.91 in Icon View in my /home directory.
I have in my /home, another directory named « Vidéos » (in UTF-8 encoding) : /home/desintegr/Vidéos/

If a try to cut/copy then paste this directory or any file in it, I got an error : « The file or folder /home/desintegr/Vidéos does not exist. » or « The file or folder /home/desintegr/Vidéos/subdir/file does not exist. »

I have the same problem with the Multicolumn View.
But it works with Tree, Info List, Detailled List and Text Views.

I hope that will be fixed in KDE 3.5 final ;)
Comment 1 Thiago Macieira 2005-09-24 20:48:45 UTC
Confirmed, KDE 3.5 r449049, full UTF-8 environmnet.
Comment 2 Thiago Macieira 2005-09-24 22:10:47 UTC
*** Bug 113246 has been marked as a duplicate of this bug. ***
Comment 3 Thiago Macieira 2005-10-04 06:05:49 UTC
*** Bug 113792 has been marked as a duplicate of this bug. ***
Comment 4 Tommi Tervo 2005-10-11 12:56:09 UTC
*** Bug 114219 has been marked as a duplicate of this bug. ***
Comment 5 huting 2005-10-11 13:02:04 UTC
My system don't use UTF8, I use gbk and also have the problem
Comment 6 Maksim Orlovich 2005-10-11 16:28:14 UTC
Sounds really bad, but I can't reproduce (en_US.UTF-8, Cyrillic file names) -- thiago, I see you confirmed it, what did you have to do?
Comment 7 Thiago Macieira 2005-10-12 06:49:03 UTC
I'm still using the same old build, so it may have got fixed in the meantime. I somehow doubt it.

Ok, here it goes step-by-step:
1. Open Konqueror
2. Go to /tmp
3. Switch to icon-view mode
4. Create a directory with non-ASCII characters in its name
   (I used "Séries")
5. Create a file in it, with whatever name
   (I RMB-clicked, New, Text file, and left the proposed name)
6. Select the file and Ctrl+C
7. Ctrl+V

I got the error that "/tmp/Séries/Text File" doesn't exist. Note that é are the bytes that make up é in UTF-8.

These are the weird things:
a) you can switch view modes after Ctrl+C that the error will keep happening
b) if you Ctrl+C when in detailed list mode, pasting in icon view works

These mean the error happens on cut/copy time, not paste time.

and c) Klipper shows the very same URL in the clipboard buffer in both cases (correctly encoded)
Comment 8 Thiago Macieira 2005-10-15 01:57:03 UTC
*** Bug 114399 has been marked as a duplicate of this bug. ***
Comment 9 Tommi Tervo 2005-10-16 14:44:53 UTC
*** Bug 114487 has been marked as a duplicate of this bug. ***
Comment 10 Germain Garand 2005-10-16 17:44:00 UTC
I'd be surprised if this isn't a dupe of #98541, hence fixed by dfaure's
r466189
Comment 11 huting 2005-10-17 01:54:33 UTC
OK ,When I use this patch,the bug never exist :)
BUG: 98541 


 M  +1 -1      konq_drag.cc   
 AM            tests (directory)   
 A             tests/Makefile.am   
 A             tests/kurldragtest.cpp   [License: LGPL (wrong address)] 


--- branches/KDE/3.5/kdebase/libkonq/konq_drag.cc #466188:466189 
@@ -153,7 +153,7 @@ 
         QByteArray a; 
         int c=0; 
         for (QStringList::ConstIterator it = m_kdeURLs.begin(); it != m_kdeURLs.end(); ++it) { 
-            QCString url = KURLDrag::stringToUrl((*it).latin1()).prettyURL().utf8(); 
+            QCString url = (*it).utf8(); 
             int l = url.length(); 
             a.resize(c+l+2); 
             memcpy(a.data()+c, url.data(), l); 
** branches/KDE/3.5/kdebase/libkonq/tests #property svn:ignore 
   + .deps 
kurldragtest 
.libs 
Makefile 
Makefile.in
Comment 12 Damien Gombault 2005-10-18 14:01:50 UTC
This bug seems to be fixed in KDE 3.5 beta2.

Comment 13 Antonio E. 2005-10-18 20:19:55 UTC
Yes, I confirm that. I've just upgraded to kde-3.5_beta2 and now it works fine.
Comment 14 Germain Garand 2005-10-18 21:40:44 UTC
good. Closing then.
Comment 15 Thiago Macieira 2005-10-24 03:01:10 UTC
Confirmed on 470926.
Comment 16 Thiago Macieira 2005-10-24 03:02:23 UTC
*** Bug 114966 has been marked as a duplicate of this bug. ***
Comment 17 Tommi Tervo 2005-10-29 10:59:08 UTC
*** Bug 115301 has been marked as a duplicate of this bug. ***