[ecasound] [PATCH] ecaconvert: escape input filenames

From: Alessandro Ghedini <alessandro@email-addr-hidden>
Date: Thu Dec 05 2013 - 22:55:46 EET

Hi,

the attached patch, adds escaping of input filenames to ecaconvert (it simply
replaces " " and "," with "\ " and "\\,").

The code seems to work nicely, but is rather stupid and certainly not the most
beautiful I've ever written (in my defence, C++ isn't really my thing), so if
anyone has a better idea, please come forward.

Also, I added it directly to ecaconvert instead of ecicpp_add_file_input()
because I didn't want to risk breaking other stuff, but I can easily change
this if desired.

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk

_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Received on Fri Dec 6 00:15:02 2013

This archive was generated by hypermail 2.1.8 : Fri Dec 06 2013 - 00:15:02 EET