[Lazarus] Problem with TProcessUTF8 and filenames with spaces

Graeme Geldenhuys graeme at geldenhuys.co.uk
Mon Dec 10 09:50:45 CET 2012


On 2012-12-08 11:30, Michael Van Canneyt wrote:
> var
>    ErrorMsg: String;
> begin
>    writeln(getoptionvalue('f','file'));
>    Terminate;


Using the above as a test app, I get exactly the same results and
Michael. It works fire here under Linux (OpenSUSE 12.2)

----8<-------------8<-------------8<-------------8<-------------8<----
[tmp]$ ./project1

[tmp]$ ./project1 -f "my long file.txt"
my long file.txt
[tmp]$ ./project1 -f 'my long file.txt'
my long file.txt
[tmp]$ ./project1 --file="my long file.txt"
my long file.txt
[tmp]$ ./project1 "--file=my long file.txt"
my long file.txt
[tmp]$ ./project1 --file='my long file.txt'
my long file.txt
----8<-------------8<-------------8<-------------8<-------------8<----


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list