Summary: | File dialog problems when selecting files with quote characters | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Brendon Higgins <brendon> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | adawit, asenlekoff, rk.tasopoulou, walch.martin |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Brendon Higgins
2009-04-18 05:21:15 UTC
I can confirm this happens, and it's similarly with the save dialog. Try to save a file called abc "xyz" and the file will be saves with the name xyz. Everything else is ignored. I also confirm this with the save dialog, but when i create file from context menu in Dolphin, i choose Create New -> Text file... and when i type test"thing or test"thing"test. About creating new file with one of those names up, i write on console: kate test"thing"test and kate opens new file with name testthingtest. Hi Asen, (In reply to comment #2) > About creating new file with one of those names up, i write on console: > > kate test"thing"test > > and kate opens new file with name testthingtest. I'm almost certain that what is happening in that case is the bash interpreter (or your shell of choice) is stripping the quote characters in its normal way. This is expected. The command you should try is kate 'test"thing"test' This will cause the shell to take the argument in the single quotes literally, and pass test"thing"test to kate. When I run that command, kate makes a new file with those double quote marks, as expected. So, that particular behaviour is not related to this bug. Peace, Brendon Confirmed with Kate on KDE 4.7.3, Kubuntu 11.10: creating a file kate 'thing"test' opens a file with that name, but doesn't let me save it. Creating a file with kate 'test"thing"test' opens a file with that name, but when I save it I end up with a file named thing. This is still present in KDE SC 4.8.2. Some other funny things that can happen: - There is a file 'a "b"'. You will not be able to open it at all. - There is a file 'a "b"' and a folder 'b'. Clicking on the file opens the folder. - There is a file '"'. Nothing happens when clicking on it. - There is a file '"a" "b"' and two folders 'a' and 'b'. Clicking on the file causes an error message telling that you can not select more than one folder at once. - Similar strange effects happen with a file named '~'. Actually, when opening such a file e. g. in Kate and then saving this with "Save As", the folder /home is opened. No problems appear when opening a file from e. g. within Konqueror. Line #1641 at kdelibs/kfile/kfilewidget.cpp contains the following statement: // FIXME: current implementation drawback: a filename can't contain quotes Unless that tokenize function is fixed, this issue will remain. *** This bug has been marked as a duplicate of bug 185433 *** |