Bugs item #2152361, was opened at 2008-10-07 16:50
Message generated for change (Comment added) made by jeffconnelly
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=103382&aid=2152361&group_id=3382

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jeff Connelly aka shellreef (jeffconnelly)
Assigned to: Nobody/Anonymous (nobody)
Summary: lcov: geninfo chokes on spaces in the directory name

Initial Comment:
In lcov 1.6, geninfo fails to find gcno/gcda files if the source directory has 
spaces in the name, because it uses backticks to shell out to "find", passing 
$directory on the command-line.

Attached is a patch that double-quotes the variable, allowing geninfo to 
operate on directories with spaces in their name. The fix isn't perfect; it 
won't work on directories with a " character, but it works fine for my purposes 
(I don't have any directories with quotes). A better fix would be to use 
IPC::System::Simple's capturex from 
http://search.cpan.org/~pjf/IPC-System-Simple-0.15/lib/IPC/System/Simple.pm#runx(),_systemx()_and_capturex().
 capturex() is a multiple-argument form of the backticks, so it avoids any 
interpolation errors.


----------------------------------------------------------------------

>Comment By: Jeff Connelly aka shellreef (jeffconnelly)
Date: 2008-10-07 16:50

Message:
File Added: geninfo-space.patch

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=103382&aid=2152361&group_id=3382

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to