I am trying to compare two directories that have spaces in path names, kompare crashes. Eg: "/some/path having spaces/dir1" and "/some/path having spaces/dir2" I am attaching a simple st of files. Test by comparing the directories file1 & file2. Reproducible: Always Steps to Reproduce: 1. Extract the attachment 2. Compare "kompare test/file1" and "kompare test/file2" 3. Observe the crash
Created attachment 89468 [details] Set of files to reproduce the problem
Here's the bug report for Fedora (auto reported by abrt): https://bugzilla.redhat.com/show_bug.cgi?id=1160938 The report says it could be potential duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1033186 I have observed the latter bug while comparing Qwt sources.
This happens with latest Kompare (15.04.0) too, if it can help, here's a backtrace: http://p.pomf.se/7362
Git commit d5220095efd768435628bdbcc28c52014b2f9dc9 by David Rosca. Committed on 10/05/2015 at 22:04. Pushed by drosca into branch 'master'. Fix crash when comparing files with space in path Add functions to escape/unescape paths extracted from diffs: - remove quotes if path is enclosed in quotes (in case of space in path) - unescape quotes in path (in case path actually contains quote) - unescape double backquotes (not on Windows) REVIEW: 123698 M +3 -2 diffmodel.cpp M +40 -4 parserbase.cpp M +3 -0 parserbase.h http://commits.kde.org/libkomparediff2/d5220095efd768435628bdbcc28c52014b2f9dc9