| Summary: | In Icon View, Konqueror is unable to cut/copy/paste file with UTF-8 characters name | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Damien Gombault <desintegr> |
| Component: | file icon view | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | aironmail, dominik.karall, hernandes, hsanson, kontakt, maksim, svarog, tingxx |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Damien Gombault
2005-09-24 15:03:49 UTC
Confirmed, KDE 3.5 r449049, full UTF-8 environmnet. *** Bug 113246 has been marked as a duplicate of this bug. *** *** Bug 113792 has been marked as a duplicate of this bug. *** *** Bug 114219 has been marked as a duplicate of this bug. *** My system don't use UTF8, I use gbk and also have the problem 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? 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) *** Bug 114399 has been marked as a duplicate of this bug. *** *** Bug 114487 has been marked as a duplicate of this bug. *** I'd be surprised if this isn't a dupe of #98541, hence fixed by dfaure's r466189 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
This bug seems to be fixed in KDE 3.5 beta2. Yes, I confirm that. I've just upgraded to kde-3.5_beta2 and now it works fine. good. Closing then. Confirmed on 470926. *** Bug 114966 has been marked as a duplicate of this bug. *** *** Bug 115301 has been marked as a duplicate of this bug. *** |