[kmail2] [Bug 326884] New: kmail removes final newline when saving .csv attachment
Joachim Wagner
jwagner at computing.dcu.ie
Wed Oct 30 14:46:39 GMT 2013
https://bugs.kde.org/show_bug.cgi?id=326884
Bug ID: 326884
Summary: kmail removes final newline when saving .csv
attachment
Classification: Unclassified
Product: kmail2
Version: unspecified
Platform: openSUSE RPMs
OS: Linux
Status: UNCONFIRMED
Severity: minor
Priority: NOR
Component: general
Assignee: kdepim-bugs at kde.org
Reporter: jwagner at computing.dcu.ie
Observed in KDE / Kontact 4.8.5 r2: Saving a .csv attachment produces a file 1
byte smaller than the original. The missing byte is the last newline.
While entering the bug, I remember having a virtual machine with KDE 4.11.2 and
the bug does not occur there. I submit the bug report anyway so that people
know that it may be fixed in a more recent KDE.
Reproducible: Always
Steps to Reproduce:
1. create a test file, for example "echo test > test.csv"
2. attach test.csv to an e-mail (leaving attachment properties to default: type
text/csv, encoding: 7bit)
3. receive e-mail
4. right click on attachment at end of e-mail and choose "save", for example as
test-v2.csv
5. compare files with "diff" and "cmp"
Actual Results:
diff: No newline at end of file
cmp: EOF on test-v2.csv
Expected Results:
diff: no output (no difference)
cmp: no output (no difference)
(1) All newlines involved (including newlines in the mbox file if saving the
full message) are just 0x0a. No CR LF newlines.
(2) Reproduced with a real-world .csv file, head and tail of the latter file
and the 1-line "echo test" test.csv file on 4.8.5 r2.
Workaround: "echo >>test-v2.csv" after saving adds the missing newline.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list