Bug 329259 - "save as" of a file with a name containing a ? (question mark) character saves under truncated name
Summary: "save as" of a file with a name containing a ? (question mark) character save...
Status: RESOLVED WORKSFORME
Alias: None
Product: kfile
Classification: Applications
Component: general (show other bugs)
Version: 4.12.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-26 22:55 UTC by realnobody
Modified: 2018-04-12 19:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.