Bug 312355

Summary: kompare fails to parse a specific diff
Product: [Applications] kompare Reporter: richlv
Component: parserAssignee: Kompare developers <kompare-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 4.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://support.zabbix.com/secure/attachment/21193/windows_2012.diff
Latest Commit: Version Fixed In:

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 ?