Bug 335922

Summary: Wrong escaping in kfilewidget if multiple files selected and the filenames contain '#', '%'
Product: [Applications] kfile Reporter: Victor Dodon <dodonvictor>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor CC: dodonvictor, rakuco, simonandric5
Priority: NOR    
Version: 4.11.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Victor Dodon 2014-06-07 16:39:44 UTC
Only when selecting multiple files in KFileDialog, if a file contains in the name the characters '#' or '%', it is (wrongly) escaped.

Reproducible: Always

Steps to Reproduce:
1. Create some files named f#1.png, f#2.png, f%1.png, f%2.png
2. Run: kdialog --multiple --getopenfilename ~ "*.png|PNG images"
Actual Results:  
KFileDialog returns:
/home/victor/f%231.png /home/victor/f%232.png /home/victor/f%251.png /home/victor/f%252.png

Expected Results:  
KFileDialog should return:
/home/victor/f#1.png /home/victor/f#2.png /home/victor/f%1.png /home/victor/f%2.png

This is also reproducible with the latest kdelibs build from master.
Comment 1 Raphael Kubo da Costa 2017-12-29 15:27:58 UTC

*** This bug has been marked as a duplicate of bug 267070 ***