[Bug 290786] New: Cannot rename files when filename encoding is broken

Martin Runge martin.runge at web.de
Fri Jan 6 11:11:45 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=290786

           Summary: Cannot rename files when filename encoding is broken
           Product: kde
           Version: 4.7
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: martin.runge at web.de


Created an attachment (id=67505)
 --> (http://bugs.kde.org/attachment.cgi?id=67505)
You can select the file with broken filename and give it a new name, but rename
will fail.

Version:           4.7 (using KDE 4.7.4) 
OS:                Linux

When a filename contains invalid characters because of wrong encoding, it is
not possible to rename these files in the KDE File Open dialog or a filemanager
like dolphin.


Reproducible: Always

Steps to Reproduce:
1. Create a file and break its filename's encoding:

> touch äöü.txt
> ls
äöü.txt
> convmv -f utf8 -t iso8859-1 --notest  äöü.txt
> ls 
???.txt

2. Try to rename that file with any KDE application.

Actual Results:  
E.g. KDE File dialog -> properties -> change filename back to äöü.txt (or any
other filename without non ascii chars) will fail with the message: "no such
file '???.txt'"

Dolphin fails, too.

Expected Results:  
It should be possible to rename all files that are displayed and are
selectable.
It works with mc.
In the shell it is difficult to name the file with broken filename, but if you
can specify a wildcard that expands to a single name it works: 

mv *.txt äöü.txt   # works as long as *.txt expands to a single file.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list