Bug 329259

Summary: "save as" of a file with a name containing a ? (question mark) character saves under truncated name
Product: [Applications] kfile Reporter: realnobody <kdespam34fb987>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: NOR    
Version: 4.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description realnobody 2013-12-26 22:55:46 UTC
"save as" of a file with a name containing a ? (question mark) character saves under truncated name

"?" (without quotes) in the file name. Name gets cut off before the "?".

I have just reported bug 329258 (" in a name) but it behaves differently to THIS case with a ? in the name (here: shown in the file name box).

Reproducible: Always

Steps to Reproduce:
1. have a file test?buuu.txt (see test case file)
2. open in kwrite (4.12.0 and KDE base same version)
3. file → save as ("test" is shown in the file name box)
4. ok
Actual Results:  
gets saved into a new file named "test" (without quotes).

Expected Results:  
file gets saved under the old file name. Also it is expected that the old name gets shown in the dialog window's file name box).

Same happens for saving in the KDE program okular (when a file name is asked for).
A simple "save" works as expected.

Impact: could lead to data loss if it is not noticed that the desired and old name was not used for the saved (possibly altered) data.
Comment 1 realnobody 2013-12-26 23:07:27 UTC
same happens for kwrite/KDE 4.11.4 (also ArchLinux)
Comment 2 realnobody 2018-04-12 19:37:05 UTC
(I myself) cannot reproduce with kwrite 17.12.3 and KDE frameworks 5.44.0 and qt 5.10.1.