[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Handling filenames with spaces.
From:       alexpod <alexpod () users ! sourceforge ! net>
Date:       2002-05-01 17:45:43
[Download RAW message or body]

David Faure wrote:
> On Tuesday 30 April 2002 13:20, markcox wrote:
> 
>>In the following code in cdbakeoven, 
>>The command calling mpg123 does not correctly handle spaces in the filename.
>>
>><snippet>	
>>
>>if(mType.find("x-mp3") != -1)
>>{
>>		*cdboShellProc << "mpg123 -v -s " + file + " > " + outName;
>>		tmpList->append(outName);
>>
>></snippet>
> 
> [...]
> 
>>What is the 'kde way' to do this?
> 
> 
> KRun::shellQuote( file );
>

In doc it's not clear: will this call also handle cases when file name 
contains a ' ( like in file : C'est la vie.mp3) or any other valid 
special shell character? And if it doesn't what's the best way to handle 
that?


Thanks,
Alex.




 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic