Bug 312355 - kompare fails to parse a specific diff
Summary: kompare fails to parse a specific diff
Status: RESOLVED NOT A BUG
Alias: None
Product: kompare
Classification: Applications
Component: parser (show other bugs)
Version: 4.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kompare developers
URL: https://support.zabbix.com/secure/att...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-29 21:46 UTC by richlv
Modified: 2012-12-29 22:52 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 richlv 2012-12-29 21:46:28 UTC
kompare 4.0.0 fails to parse https://support.zabbix.com/secure/attachment/21193/windows_2012.diff

Inkane in #kde reported it also failing with kompare 4.1.2


Reproducible: Always
Comment 1 Kevin Kofler 2012-12-29 22:13:06 UTC
The problem is that this diff is missing the first line which identifies it as a unified diff, something like:
diff -u src/libs/zbxsysinfo/common/system.c.orig src/libs/zbxsysinfo/common/system.c

(diff normally writes the way it was invoked as the first line of the diff.)
Comment 2 richlv 2012-12-29 22:52:38 UTC
'patch' does accept it, though. maybe it's worth parsing such diffs anyway ?